by daralthus · 4y ago · 0 comments
ones = 1 : ones
take 3 ones // [1,1,1]
odds = 1 : map (+2) odds
take 3 odds // [1,3,5]
Haskell has a statement-like “do” notation, but it is a syntactic sugar for a structure of specific operators.Lisp is also a beast to be aware of, though it is not exactly what you described.