*Something that, for the casual programmer, is quite technical but uninteresting, has a scary name, and a not-that-friendly error message.compress [] = [] compress [a] = [a] -- singleton list compress (x:y:xs) = (if x == y then [] else [x]) ++ compress (y:xs)
In reply to Re^6: 99 Problems in Perl6
by gaal
in thread 99 Problems in Perl6
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |