fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 93: Pass a runnable procedure as parameter
Idiom # 93: Pass a runnable procedure as parameter
See
programming-idioms.org
:
Code
control(f () -> unit) => f()
What are effects?
Running Example
ex93 is control(f () -> unit) => f() control (() -> yak "Hello ") control (() -> say "World!")
What are effects?
last changed: 2024-07-01
next: Idiom # 94: Print type of variable