in reply to Re^3: 99 Problems in Perl6 (Lisp, Prolog, Haskell)
in thread 99 Problems in Perl6

I just chose to write it as a list operator so that you could say
@result = group 1,2,2,2,3,3,4,4,4,4,5,5,6,6;
instead of doing it all with "scalar" arrays:
@result := group [1,2,2,2,3,3,4,4,4,4,5,5,6,6];
But either approach is fine.