Run-length encoding: Difference between revisions

m
less clutter
m (Credit for others)
m (less clutter)
Line 1,697:
A numeric approach, based on a discussion in the J forums (primarily [http://jsoftware.com/pipermail/programming/2015-June/042139.html Pascal Jasmin] and [http://jsoftware.com/pipermail/programming/2015-June/042141.html Marshall Lochbaum]):
 
<lang j> torle =: (#, {.);.1~ 1,2&( ~:/\) ]
frle=: #/@:|:</lang>
 
6,962

edits