Inline
Example
add = def(x, y) -> (
return x + y
)
// Usage
result = add(5.0, 3.0)Functions as arguments
arr = [1,2,3,4,5]
log arr.map(def(item) -> (
return item * 2
// set each item to itself * 2
))
// [2,4,6,8,10]Last updated