Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by BrowserUk (Patriarch)
on Aug 12, 2007 at 14:34 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://632061]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found