The previous article introduced suspend functions in coroutines -- introducing the Continuation interface in coroutines and the concept of CPS variations, and exploring in detail...
Instead of using Java's private Constroctor and getInstance interfaces, you can use Object directly. When it comes to lazy loading, we can directly jump to...
Today we're going to talk about some of the more fashionable things in Kotlin. Some people might say, "Unlike your previous style, your previous articles...
In Kotlin, any function that returns a value, except the value of an expression, requires an explicit return statement to return its value. An example...
The conclusion is that the paternity of generic covariant is the paternity of identity. After the inversion of generic type, the parent-child relationship is like,...
In this section we'll look at Kotlin's generics and delegates. Generics are not exactly new. Java introduced generics as early as version 1.5, and Kotlin...
This paper mainly explains two features of Kotlin: 1. Tail recursive optimization; 2. 2. Infix method infix combat, combined with the use of operator overload;
In our recently completed series of Modern Android Development (MAD Skills) videos and articles, we focused on Kotlin and Jetpack. We have introduced a number...
This post was shared by Google development technology outreach engineer Florina Muntenescu, in which she picks up some of the most popular questions Google has...
Earlier in Learn-as-You-Go Android Jetpack-Paging 3, we talked about the pits we encountered because of state logging. Clicking on the crown button in the image...
In this section, we'll understand some basic concepts of the language and add some code to mainActivity.kt. Kotlin -- Part 1: Configuring Android Studio Kotlin...
This article will help you understand how the suspend method works. Using Coroutines(later referred to as Coroutines) on Android will help simplify the development of...
Recently, Kotlin's voice has become louder and louder. A few days ago, Google IO in 9012 officially promoted Kotlin from First class to Kotlin_first. I...
The functional API for collections is an excellent example of learning Lambda programming. There are many functional apis for collections, and we will focus on...
Isn't that the definition of higher-order functions? Yes, however, functional programming is a programming paradigm, and higher-order functions are the basic techniques of functional programming,...
In the last article Kotlin coroutine in-depth understanding of the working principle of coroutine from the source point of view of the Kotlin coroutine working...
This series of blog posts delves into cancellations and exceptions in Kotlin coroutines. To avoid wasting memory and battery life, coroutine cancellation is critical; Proper...
The relationship between higher-order functions and Lamdba is inextricable. Functions that take Lambda arguments can be called functional programming style apis, whereas if you want...
Kotlin efficient parsing mathematical expressions (support functions/brackets/constant) ⚠️ source code according to the use of scenarios customized, to maximize the efficiency of the use of...