I don’t know gleam, but surely
list.map(fn(line) { line |> calculate_instruction })
list.map(calculate_instruction) ?
You're right, but loads of times I just left that there because I probably did something more involved in the map that I ended up deleting later without realising.
That is correct.
You're right, but loads of times I just left that there because I probably did something more involved in the map that I ended up deleting later without realising.