Retired

Church numbers (retired)

Description
Loading description...
Fundamentals
  • Please sign in or sign up to leave a comment.
  • JohanWiltink Avatar

    The kata linked in the description is retired.

  • hobovsky Avatar

    This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/142.
    Please join the discussion to help us identify duplicate kata and retire them.

  • Armind04 Avatar

    this is a case, when you have no idea hove to solve this task after reading for the first time. But my efforts give me a result.

  • davidmaamoaix Avatar

    For those who are stuck: you are supposed to use succ to do this instead of trying to reimplement everything from church yourself ;)

    This was discussed in the problem prompt, yet I somehow missed it and got stuck for quite a while...

  • FArekkusu Avatar

    The anticheat can be easily bypassed by using helper functions, and banning the +/-/* operators is not enough as certain arithmetic operations can be easily simulated (to some extent).

  • Jomopipi Avatar

    typo in description: curchToInt

  • drcz Avatar

    current definition of churchToInt doesn't work; why not just (church)=>church((x)=>x+1,0) ?

  • donaldsebleung Avatar

    Whew, this Kata is much harder than I anticipated - considering how quickly I managed to complete "Algebraic Data Types", I thought I would've been able to breeze through this Kata in well under half an hour. Turns out I was dead wrong - it's been well over an hour now and I still don't have a single clue as to how to complete the add function for two church numbers. Well, at least this is a great opportunity for me to prepare for my Engineering (CS) course at University by learning the fundamentals of lambda calculus from scratch on my own ...

  • Azuaron Avatar

    This comment has been hidden.

  • Uraza Avatar

    Thanks for this nice kata. I think you should forbid the usage of intToChurch in the solutions, similarly to how you forbid the usage of loops or arithmetic operations in the first part of the kata.

  • vferries Avatar

    This comment has been hidden.