LZW compression: Difference between revisions
Content added Content deleted
Line 1,754: | Line 1,754: | ||
fun compress ← List by text uncompressed |
fun compress ← List by text uncompressed |
||
List output ← int[] |
List output ← int[] |
||
text working ← Text. |
text working ← Text.EMPTY |
||
Map symbolTable ← text%int[].with(256, <int i|text%int(chr(i) => i)) |
Map symbolTable ← text%int[].with(256, <int i|text%int(chr(i) => i)) |
||
for each text c in uncompressed |
for each text c in uncompressed |