nest- Take a set of records and place them in a map
lift- Take a map by key and lift its records up
Key*under a new key
NestKeythe transformation becomes,
NestKey*the transformation becomes,
Mem.*under the new key
Swap,*items under the
Statskey and then reverses these actions with a
liftoperation. The output appears unchanged.
Mem.*and nests them under
LAYER1, which itself is then nested under
LAYER2, which is nested under
liftfilter three times to reverse the operations. The end result is that all records are at the top level, without nesting, again. One prefix is added for each level that is lifted.