Posts Tagged ‘zipWith’
Haskell Mindfunk
Just a line of Haskell that one of my lecturers gave me once, which defines a variable in terms of itself:
x = 1 : zipWith (*) [1..] x
Just a line of Haskell that one of my lecturers gave me once, which defines a variable in terms of itself:
x = 1 : zipWith (*) [1..] x