Functions and Calls
Define a function with =>. Parameters are separated by whitespace. @name selects a function handle.
double = (value:int64):>int64 => value*2
let callback = @double
printl(callback(21))
Expected output:
42
Run the example from a file with dewy example.dewy. Its exact output is checked by the website build on the native release target.
Design boundary. The Functions and Calls reference specifies the complete language rules. A passing example covers this program only. See generated coverage for related acceptance programs and unmeasured areas.