Recent Posts

Elegant Local Function

1 minute read

What exactly is local function? It was new to me in Kotlin and thought it is interesting to dig deeper. In a normal class, we have many functions within a cl...

Sequence: lazy evaluation

2 minute read

What is Sequence? A Kotlin Sequence is like a List, but you can only iterate. You cannot index into Sequence. And this restriction produces very efficient ch...

Higher-Order Function

less than 1 minute read

What is it? If you are coming from JavaScript, this concept may sound familiar to you. Otherwise, here is what it means.

Why Lambda

2 minute read

To some people, lambda may seem like syntax sugar, but it is more than that. If you have to repeat some codes with minor modification, you can leverage on th...