Last active
August 19, 2020 11:54
-
-
Save adibpwd/4d4f891c989f7f1f55f226fdc58166d0 to your computer and use it in GitHub Desktop.
highorderfunction.dart
This file contains hidden or 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
void main() { | |
print('hello world'); | |
void myHigherOrderFunction(String message, (9, 9)); | |
} | |
// coba 1 | |
// void myHigherOrderFunction(String message,Function printLambda = (int a, int b) { | |
// print('This is lambda function'); | |
// }) { | |
// print(message); | |
// print(myFunction(3, 4)); | |
// } | |
// coba 2 | |
// void myHigherOrderFunction(String message, (int num1, int num2) { | |
// return num1 + num2; | |
// }{ | |
// print(message); | |
// print(myFunction(3, 4)); | |
// } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment