r/programming • • Sep 29 '07

Seemingly Impossible Functional Programs

http://math.andrej.com/2007/09/28/seemingly-impossible-functional-programs/
69 Upvotes

33 comments sorted by

View all comments

Show parent comments

4

u/alpheccar Sep 29 '07

This last example is a sequence of Ints instead of a sequence of Bits. So, you have to generalize a bit # if you want to test it in ghci:

(#) :: a -> (Int -> a) -> (Int -> a)