🔍

Monadic .o.compress

The platform has the ability to compress a byte vector using the LZ4 algorithm.LZ4 is a lossless data compression algorithm that is focused on compression and decompression speed.

Syntax: .o.compress <vec>; .o.compress[<vec>]

Monadic .o.decompress

Decompresses a byte vector.

Syntax: .o.decompress <vec>; .o.decompress[<vec>]

o)l:!1000;
o)v: >>l;
o)count v
8008
o)c:.o.compress v;
o)count c
4011
o)20# << .o.decompress[c]
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
o)