Functional Programming
- Functions are objects
- Function is an abstract type
examples/dart-intro/assign_function.dart
hi(name) { print("Hello $name"); } var welcome = hi; main() { hi("Foo"); welcome("Bar"); }
hi(name) { print("Hello $name"); } var welcome = hi; main() { hi("Foo"); welcome("Bar"); }