News for hackers. Stuff that matters.
Re:The Evolution of a Haskell Programmer (2001) by tromp on Monday February 08, 2016 @02:59PM (#11060485)
Church of the No Fixed Point programmer:

    succChurch n f = n f . f

    facChurch n f = n g (const f) id where
            g f n = n (f (succChurch n))

    toChurch 0 = const id
    toChurch k = succChurch (toChurch (k-1))

    fromChurch n = n succ 0

    fac = fromChurch . facChurch . toChurch

There are no comments on this comment yet.