sub rle { ($c)=@_;my$i;map$c ne$_?("$i*$c",$i=1,$c=$_)[0]:++$i&&(),@_,!$_[-1] }
In reply to Re: PPGA - Prolog-Perl Golf Association: Run-length encoding
by chipmunk
in thread PPGA - Prolog-Perl Golf Association: Run-length encoding
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |