in reply to Re^6: 99 Problems in Perl6
in thread 99 Problems in Perl6
multi compress () { () } multi compress ($a) { item $a } multi compress ($x, $y, *@xs) { $x xx ($x !=== $y), compress($y, |@xs) + } my @x = <a a a a b c c a a d e e e e>; say perl compress |@x;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: 99 Problems in Perl6
by gaal (Parson) on Dec 15, 2006 at 23:44 UTC | |
by TimToady (Parson) on Dec 15, 2006 at 23:51 UTC | |
by gaal (Parson) on Dec 16, 2006 at 07:31 UTC | |
by gaal (Parson) on Dec 16, 2006 at 09:01 UTC | |
by ambrus (Abbot) on Dec 17, 2006 at 10:23 UTC | |
by gaal (Parson) on Dec 17, 2006 at 18:04 UTC |