Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: In need of a sequence iterator. (Haskell)

by kelan (Deacon)
on Aug 08, 2005 at 20:38 UTC ( [id://482019]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    import Char  -- for intToDigit
    
    ...
      d  <- map intToDigit [0 .. max-1]
      ds <- [] : gen (len-1) max
      return (d:ds)
    
  2. or download this
    gen :: Int -> Int -> [String]
    gen 0 _ = []
    ...
            )
            ( map intToDigit [0 .. max-1] )
      )
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-23 07:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found