Harness Diff Viewer Demo (Pierre-style)
────────────────────────────────────────────────────────────
Proposed change lib/orders/total.ex +2 -2
Not yet applied: review before confirming
────────────────────────────────────────────────────────────
1 defmodule Orders.Total do
2 @moduledoc "Order total calculation and formatting."
3
─────────────────────── ⋯ 8 unchanged lines ⋯ ──────────────
12 def currency_symbol(:gbp), do: "£"
13
14 def calculate(items) do
▌15 IO.inspect(items, label: "items")
▌16
17 items
18 |> Enum.map(& &1.price)
19 |> Enum.sum()
20 end
21
─────────────────────── ⋯ 2 unchanged lines ⋯ ──────────────
24 end
25 end
26
────────────────────────────────────────────────────────────
1/8 refactor + folding | auto->split | w140 fold 3
[s] sample [m] mode [w] width [f] fold