A generic function for compressing a data structure.
compress(x, ...)
x
the object to be compressed.
...
additional arguments to methods.