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:push @soln, $val if ( $soln[-1] ne $val );
Huh. That can't be right.push @soln # and then .. $val if ( $soln[-1] ne $val );
You could also use indentation to make it clearer ..
push @soln, $val if ( $soln[-1] ne $val );
Anyway, it's a matter of taste, and my preferences comes from writing C in the 80's.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: reduce like iterators
by tybalt89 (Monsignor) on Jan 12, 2024 at 00:32 UTC |