Anonymous user
Catamorphism: Difference between revisions
m
→{{header|Tailspin}}: syntax update
(Added Wren) |
m (→{{header|Tailspin}}: syntax update) |
||
Line 2,108:
If you really want to make a utility, it could look like this:
<lang tailspin>
templates fold
@: $(1);
$(2..last)... -> @: [$@, $] -> op;
Line 2,122:
end mul
[1..5] -> fold
' -> !OUT::write
[1..5] -> fold
' -> !OUT::write
</lang>
|