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