Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by Errto (Vicar)
on Jun 24, 2004 at 01:20 UTC ( #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
Node Status?
node history
Node Type: note [id://369215]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2020-02-20 07:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (86 votes). Check out past polls.

    Notices?