Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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?
[LanX]: I think foreigners tend to simplify their phrases, whereby often native speakers don't know how to adapt
[Eily]: nope, France
[LanX]: That's pretty true for every language
[LanX]: so don't worry, anyway most spoken language in the world is broken English
LanX (especially in the streets of Singapore)
[Eily]: yes I know, native English speakers are actually a minority among English speakers :)

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2017-03-27 16:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.