LZW compression: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: added syntax colouring the hard way) |
|||
Line 3,558: | Line 3,558: | ||
</pre> |
</pre> |
||
=={{header|Mathematica}}== |
=={{header|Mathematica}}/{{header|Wolfram Language}}== |
||
{{trans|Ruby}} |
{{trans|Ruby}} |
||
<lang>compress[uncompressed_] := |
<lang>compress[uncompressed_] := |
||
Line 3,599: | Line 3,599: | ||
{{Out}} |
{{Out}} |
||
<pre>{"T", "O", "B", "E", "O", "R", "N", "O", "T", 256, 258, 260, 265, 259, 261, 263} |
<pre>{"T", "O", "B", "E", "O", "R", "N", "O", "T", 256, 258, 260, 265, 259, 261, 263} |
||
"TOBEORNOTTOBEORTOBEORNOT"</pre> |
"TOBEORNOTTOBEORTOBEORNOT"</pre> |
||