Run-length encoding: Difference between revisions

Content deleted Content added
Rdm (talk | contribs)
m Credit for others
Rdm (talk | contribs)
m less clutter
Line 1,697: 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]):
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&(~:/\)
<lang j> torle=: (#, {.);.1~ 1,2 ~:/\ ]
frle=: #/@:|:</lang>
frle=: #/@:|:</lang>