exercism/elixir/boutique-inventory/HINTS.md

2.0 KiB

Hints

General

1. Sort items by price

2. Find all items with missing prices

3. Update item names

  • There is a built-in function for transforming every element in an enumerable.
  • There is a built-in function that can replace all instances of one string with a different one.

4. Increment the item's quantity

5. 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.