To define an API for assembly (converting a sequence of items into a single item) and disassembly (converting a single item into a sequence of items).