Run-length encoding: Difference between revisions

Content deleted Content added
Add Nimrod
Nimrod -> Nim
Line 2,130: Line 2,130:
WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWW</pre>
WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWW</pre>


=={{header|Nimrod}}==
=={{header|Nim}}==
{{trans|Python}}
{{trans|Python}}
<lang nimrod>import strutils
<lang nim>import strutils


type RunLength = tuple[c: char, n: int]
type RunLength = tuple[c: char, n: int]