Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: A mini-language for sequences (part 1)

by tmoertel (Chaplain)
on Nov 06, 2004 at 16:03 UTC ( #405772=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        seq_from_spec( \(@site1, @site2) )
            ->seq_concatmap( sub { seq_zip(map seq(split//), @_) } )
            ->seq_foreach(   sub { $counts{"@_"}++ } );
    
  2. or download this
        sub upto  { 1 .. $_[0]     }
        sub supto { seq(upto(@_)); }
    ...
        #  3 => 1
        #  4 => 2
        #  5 => 3
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2019-10-16 21:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?