Open DaQuirm opened 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
zero
two
Hint: Convert resulting numbers back to check whether the conversion is correct.
Write a function that converts a non-negative number to a respective Church numeral
E.g.
f(0) should equal
zero
f(2) should equaltwo
and so onHint: Convert resulting numbers back to check whether the conversion is correct.