mirror of
https://github.com/rjNemo/exercism-elixir
synced 2026-06-06 02:16:48 +00:00
1.6 KiB
1.6 KiB
Hints
General
- Read about the
Enummodule in the official Getting Started guide or on elixirschool.com. - Take a look in the documentation for the full list of functions in the
Enummodule.
1. Sort items by price
- There is a built-in function for sorting enumerables using a sorter function.
2. Find all items with missing prices
- There is a built-in function for filtering enumerables.
3. Increment the item's quantity
- Maps implement the enumerable protocol.
Enumfunctions convert maps to a list of{key, value}tuples.- There is a built-in function for replacing every element in an enumerable with another element.
- There is a built-in function that can transform a list of
{key, value}tuples back into a map.
4. Calculate the item's total quantity
- Maps implement the enumerable protocol.
Enumfunctions convert maps to a list of{key, value}tuples.- There is a built-in function for reducing an enumerable to a single value.