[ create a new paste ] login | about

Link: http://codepad.org/3YymharR    [ raw code | output | fork ]

johannes - Haskell, pasted on Aug 7:
1
2
3
4
5
6
7
8
module Main where

fn3 f = \x -> \y -> if (y == 0) then x else f y (rem x y)
fpc f = f (fpc f)

divisor = fpc fn3

main = print (divisor 72 81)


Output:
1
9


Create a new paste based on this one


Comments: