in reply to Re^2: reduce like iterators
in thread reduce like iterators

Sure, but then you're left with

and with the comma suggesting do this thing, then do that other thing, it could read like this: Huh. That can't be right.

You could also use indentation to make it clearer ..

Anyway, it's a matter of taste, and my preferences comes from writing C in the 80's.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Replies are listed 'Best First'.
Re^4: reduce like iterators
by tybalt89 (Monsignor) on Jan 12, 2024 at 00:32 UTC

    That's why I prefer

    $soln[-1] ne $val and push @soln, $val;