Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Hamming Sequences and Lazy Lists

by Roy Johnson (Monsignor)
on Apr 21, 2005 at 23:13 UTC ( #450230=note: print w/ replies, xml ) Need Help??


in reply to Re: Hamming Sequences and Lazy Lists
in thread Hamming Sequences and Lazy Lists

No need to populate values, though.

return sub { my $next = min keys %pool; @pool{ map { $next * $_ } @factor } = (); delete $pool{$next}; return $next; };

Caution: Contents may have been coded under pressure.


Comment on Re^2: Hamming Sequences and Lazy Lists
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://450230]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2015-07-04 09:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (58 votes), past polls