in reply to Re: (Efficiency Golf) Triangular numbers
in thread (Efficiency Golf) Triangular numbers
I'm familiar with assigning to slices of a hash, and its
use in this line:
@seen {$t, $h, $r, $e} = ();
was very clever. However, why did you use slices in these lines?
Aren't they equivalent to:@seen {$n,} = (); .... @seen {$o,} = ();
Or even just:$seen{$n} = undef; $seen{$o} = undef;
I guess its that trailing comma that looks odd to me.@seen {$n} = (); # note the lack of comma after $n .... @seen {$o} = ();
-Blake
p.s. props on the @HIGH and @LOW generation... very sneaky!
In Section
Meditations