This kata is an introduction to flow and covers:
- Creating a flow from a data source
- The importance of partitions
- Map and reduce functions and how they behave differently from the
Enum
orStream
variants
Implement the functions in lib/flow_kata.ex
.
To test if you're doing the right thing, run mix test
.
You can test your implementations individually:
get_flow
:mix test test/flow_kata_test.exs:9
city_names
:mix test test/flow_kata_test.exs:23
average
:mix test test/flow_kata_test.exs:28
average_by_city
:mix test test/flow_kata_test.exs:32
This repository contains 3 branches: