Posts by Jesse Wouters

Kotlin Scope Functions

Posted on by  
Jesse Wouters

Kotlin’s standard library offers many functions, but the ones that stand out in my opinion are scope functions. These scope functions exist to execute a code block in the context of the object on which you execute it. Within this scope, you can perform operations on the object with or without a name. Scope functions can make code more readable and concise, but beware! Nesting scope functions can cause confusion about the current context object.

Continue reading →

shadow-left