in reply to Re^5: 99 Problems in Perl6
in thread 99 Problems in Perl6
*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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: 99 Problems in Perl6
by TimToady (Parson) on Dec 15, 2006 at 23:31 UTC | |
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 | |
|