- Task summary: https://gist.github.com/rsp/4255663f8c5a5e58bc9818a6174fe28f
- Articles: https://blog.infullmobile.com/language-wars-introduction-8ea0598e897
We need a function f
that takes a
and returns b
:
b = f(a)
such as:- when:
a = g => x => g(g(g(x)))
- then:
b = g => x => g(g(x))
Kotlin solution by Jan Gonera.
- Full code: https://gist.github.com/rsp/ffd9473bb1571d1297091864f0c49a54
- Solution: https://gist.github.com/rsp/a43d817e67a70815ec3fcbf58657dfbc
Java solution by Michał Karpiuk.
- Solution: https://gist.github.com/MichalKarpiukIFM/14032b487e1b7b9b6f52d6defe8ba2da
- Tests: https://gist.github.com/MichalKarpiukIFM/b6fcb047feaf8693e9a7cffb9f531148
Swift solution by Mikołaj Chmielewski.
- Full code: https://gist.github.com/rsp/da7445befa774b6cf63863cc1ed4e036
- Solution: https://gist.github.com/rsp/f78d80a70f46bbc0fbc57576807775e1
Haskell solution by Dominik Hys.
Scheme solutions by Rafał Pocztarski.
- Full code: https://github.com/rsp/ifm-lw-r1-scheme
- Solutions:
Old JavaScript solutions by Rafał Pocztarski.
- Full code: https://github.com/rsp/ifm-lw-r1-ojs
- Solutions:
Modern JavaScript solutions by Rafał Pocztarski.
- Full code: https://github.com/rsp/ifm-lw-r1-js
- Solutions:
Jan Gonera https://github.com/rainqer https://medium.com/@RaINqer
Michał Karpiuk https://github.com/MichalKarpiukIFM https://medium.com/@michal.karpiuk
Mikołaj Chmielewski https://github.com/mikchmie-ifm https://medium.com/@mikchmie
Dominik Hys https://github.com/domhys https://medium.com/@domhys
Rafał Pocztarski https://github.com/rsp https://medium.com/@pocztarski