Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Adding 2 + 2

by mrborisguy (Hermit)
on Jul 24, 2005 at 02:21 UTC ( #477539=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Language::Haskell;
    print Language::Haskell->new->eval('foldr (+) 0 [2,2]');
    
  2. or download this
    use Language::Functional qw(foldr);
    print foldr { $_[0] + $_[1] } 0, [2,2];
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://477539]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2017-02-20 18:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (301 votes). Check out past polls.