in reply to Re^2: Summing up duplicate lines
in thread Summing up duplicate lines

Actually, in terms of output content both are identical. The difference is that the two solutions give a different line order.

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond

Replies are listed 'Best First'.
Re^4: Summing up duplicate lines
by oko1 (Deacon) on May 09, 2024 at 21:27 UTC

    I can't imagine why the default assumption would be that order doesn't matter, but - yes, it does. It's a series of mouse positions for drawing a shape, in case that matters as well.

    -- 
    I hate storms, but calms undermine my spirits.
     -- Bernard Moitessier, "The Long Way"
      I can't imagine why the default assumption would be that order doesn't matter

      Nothing matters other than what is in the spec. If the spec doesn't mention the order then ipso facto the order doesn't matter.


      🦛