πŸ—“οΈDay 17

Wednesday, 24 August 2022 - Day 17 of Exhort August 2022 - Exercism (My Elixir Journey)

Exercises

Boutique Suggestions

Exercise on Exercism | View my solution

Solution

Expand to see code (spoiler alert)
defmodule BoutiqueSuggestions do
  def get_combinations(tops, bottoms, options \\ []) do
    mp = Keyword.get(options, :maximum_price, 100.0)

    for x <- tops,
        y <- bottoms,
        x.base_color != y.base_color and x.price + y.price <= mp do
      {x, y}
    end
  end
end

View gist on GitHub

Notes

Community Garden

Exercise on Exercism | View my solution

Solution

Expand to see code (spoiler alert)

Notes

Bread and Potions

Exercise on Exercism | View my solution

Solution

Expand to see code (spoiler alert)

Notes

Overall progress

An image showing my progress on Exercism. It's 19.9% as of Wednesday, 24 August 2022.
Progress

Last updated