exercism-elixir/boutique-inventory/HINTS.md
2022-02-09 17:27:18 -04:00

1.6 KiB

Hints

General

1. Sort items by price

2. Find all items with missing prices

3. Increment the item's quantity

  • Maps implement the enumerable protocol.
  • Enum functions 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.
  • Enum functions convert maps to a list of {key, value} tuples.
  • There is a built-in function for reducing an enumerable to a single value.