Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: RFC: A Perlesque Introduction to Haskell, Part One (DRAFT)

by Errto (Vicar)
on Jun 24, 2004 at 01:20 UTC ( [id://369215]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    fib :: [Integer]
    fib = 1 : 1 : zipWith (+) fib (tail fib)
    
  2. or download this
    inschar n c = foldr1 (\s1 s2 -> s1 ++ c : s2) . 
              map (take n) . takeWhile (not . null) . iterate (drop n)
    
    commaize :: String -> String
    commaize = reverse . inschar 3 ',' . reverse
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-19 20:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found