Run-length encoding: Difference between revisions
m
→{{header|FutureBasic}}
Line 2,833:
=={{header|FutureBasic}}==
<syntaxhighlight lang=FutureBasic>
local fn encode( string as CFStringRef) as CFStringRef
Line 2,877 ⟶ 2,874:
end fn
fn decode( @"12W1B12W3B24W1B14W" ) // Assignment
fn encode( @"WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWW" )
handleevents // Join Mac event loop
Line 2,923 ⟶ 2,886:
WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWW
12WB12W3B24WB14W
</pre>
|