Run-length encoding: Difference between revisions
Content deleted Content added
m Credit for others |
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 |
<lang j> torle=: (#, {.);.1~ 1,2 ~:/\ ] |
||
frle=: #/@:|:</lang> |
frle=: #/@:|:</lang> |
||