* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
10 lines
955 B
Markdown
10 lines
955 B
Markdown
# Lambda Functions
|
|
|
|
Lambda functions in Kotlin are essentially nameless functions that you can treat like values. Think of them as mini-functions you can pass around, store in variables, or execute directly. They're defined using curly braces `{}` and can take parameters and return a value. They're particularly useful for short, concise operations, especially when working with collections or higher-order functions (functions that take other functions as arguments).
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@official@Lambda expressions and anonymous functions](https://kotlinlang.org/docs/lambdas.html#lambda-expressions-and-anonymous-functions)
|
|
- [@article@Kotlin Lambda Functions](https://medium.com/@guruprasadhegde4/kotlin-lambda-expressions-bb9d4e15b6fc)
|
|
- [@video@How to Use Simple Lambda Expressions in Kotlin](https://www.youtube.com/watch?v=unCjOegBSMI)
|
|
- [@video@Introduction to Lambdas](https://www.youtube.com/watch?v=S6oJgF_J9m4) |