Merging maps in list based on matching value

Hey @benonymus what have you tried so far? If you need help getting started, check out the functions in Enum — Elixir v1.20.2 and see if there’s something that might like you group_by the items with the same price, after which you could go through each price group and reduce them into a single purchase.