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

Re^2: RFC: A Perlesque Introduction to Haskell, Part One (draft)

by danderson (Beadle)
on Jun 23, 2004 at 22:05 UTC ( #369189=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    sub factorial
    ...
      return 1 if ( $i <= 0 );
      return $i * factorial( $i-1 );
    }
    
  2. or download this
    factorial 0 : 1;
    factorial i : i * factorial( i - 1 );
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2019-11-16 01:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (85 votes). Check out past polls.

    Notices?