Run-length encoding: Difference between revisions

m
→‎{{header|REXX}}: added comments.
m (→‎{{header|REXX}}: combined the version 1 encode and decode into one program, added/changed comments and whitespace.)
m (→‎{{header|REXX}}: added comments.)
Line 4,187:
 
===version 2===
<lang rexx>
<lang rexx>s='WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWW'
/*REXX*/
<lang rexx>s='WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWW'
Say ' s='s
enc=encode(s)
Line 4,234 ⟶ 4,236:
===version 3===
No need to output counts that are 1
<lang rexx>
<lang rexx>s='WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWW'
/*REXX*/
<lang rexx>s='WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWW'
Say ' s='s
enc=encode(s)