lesnitsky / 0110011001110000

1 stars 1 forks source link

Number-to-Church number conversion #2

Open DaQuirm opened 4 years ago

DaQuirm commented 4 years ago

Write a function that converts a non-negative number to a respective Church numeral

E.g.

f(0) should equal zero f(2) should equal two and so on

Hint: Convert resulting numbers back to check whether the conversion is correct.