Last active
June 21, 2021 20:12
-
-
Save GabrielBrasileiro/3a094994cfb7efa96ede40c8406a2fe9 to your computer and use it in GitHub Desktop.
HighOrderFunctionInline.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun main() { | |
val descricao = "Inline te dando poderes mágicos" | |
executarOperacao { | |
print(descricao) | |
} | |
} | |
fun executarOperacao(operacaoDois: () -> Unit) { | |
operacaoUm() | |
operacaoDois() | |
operacaoTres() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment