This website requires JavaScript.
Explore
Help
Sign In
jeff
/
dust
Watch
1
Star
0
Fork
0
You've already forked dust
Code
274891d96e
dust
/
examples
/
yield.ds
10 lines
104 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Add yield syntax
2023-11-16 01:46:45 +00:00
1 -> (output)
Begin adding yield; Clean up
2023-11-07 00:10:12 +00:00
add_one = |list| {
transform number in list {
number + 1
}
}
Add yield syntax
2023-11-16 01:46:45 +00:00
[1, 2, 3] -> (add_one)
Copy Permalink