1
0
dust/examples/yield.ds

13 lines
142 B
Plaintext

1 -> (output)
add_one = |list| => {
transform number in list {
number + 1
}
}
foo = [1, 2, 3] -> (add_one)
(assert_equal [2 3 4] foo)