Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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
Domain Nodelet?
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 taking refuge in the Monastery: (3)
As of 2023-09-23 14:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?