Archive

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

Categories: Code, Haskell Tags: , , , ,