Killing Primitive Loops and Conditionals
journal.stuffwithstuff.com
journal.stuffwithstuff.com
true = lambda(x,y) -> x
false = lambda(x,y) -> y
if = lambda(pred,then,else) -> pred(then,else)I'm partial to iterators that look like "for each" for loops. You say recursion, I say tomato.
Ether :: while: condition do: block {
if: condition call then: {
block call
while: condition do: block
}
}