Created
October 31, 2018 21:37
-
-
Save marcusedu/9d7f97074c624bf6a8f79d967f6b7044 to your computer and use it in GitHub Desktop.
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
main(){ | |
var marcusFala = pessoaFala("Marcus"); | |
print(marcusFala("É muito legal uma função retornar outra função")); | |
var claudioFala = pessoaFala("Claudio"); | |
print(claudioFala("Você só fica pronto fazendo!")); | |
} | |
Function pessoaFala(String nome) => (String msg) => "$nome: $msg"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment