Jump to content

LZW compression: Difference between revisions

m
Line 1,754:
fun compress ← List by text uncompressed
List output ← int[]
text working ← Text.emptyEMPTY
Map symbolTable ← text%int[].with(256, <int i|text%int(chr(i) => i))
for each text c in uncompressed
226

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.