Run-length encoding: Difference between revisions
Content added Content deleted
(Add Nimrod) |
(Nimrod -> Nim) |
||
Line 2,130: | Line 2,130: | ||
WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWW</pre> |
WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWW</pre> |
||
=={{header| |
=={{header|Nim}}== |
||
{{trans|Python}} |
{{trans|Python}} |
||
<lang |
<lang nim>import strutils |
||
type RunLength = tuple[c: char, n: int] |
type RunLength = tuple[c: char, n: int] |