/java8-functional-katas

Some katas for functional programming in Java 8 for a coding dojo.

Primary LanguageJava

java8-functional-Katas

Some Katas for functional programming in Java 8 for a coding dojo (loosely based on http://reactive-extensions.github.io/learnrx/ and converted to Java)

Just read the instructions in the Kata and try to finish them. You can also use TDD if you want - there are dummy tests for all Katas.

Katas

  • Kata 1: simple projection using map
  • Kata 2: filter() and map()
  • Kata 3: using map() and flattening the array using flatMap()
  • Kata 4: a simple query using map(), filter() and flatMap()
  • Kata 5: simple example using reduce()
  • Kata 6: map() and reduce() combined
  • Kata 7: more advanced queryin
  • Kata 8: combining collections using zip()
  • Kata 9: Complex Query
  • Kata 10: Transforming a data structure
  • Kata 11: Transforming a more complex data structure