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

Re: Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...)

by BrowserUk (Pope)
on Aug 12, 2007 at 14:34 UTC ( #632061=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    group                   =  groupBy (==)
    
    ...
        | p x = (x:ys, zs)
        | otherwise = ([],xs)
            where (ys,zs) = span p xs'
    
  2. or download this
    sub group {
        map{
    ...
            $a;
        } [], unpack 'C*', shift }
    }
    
  3. or download this
    print for group 'ZBBBCCZZ';
    Z
    BBB
    CC
    ZZ
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2014-08-23 01:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (169 votes), past polls