Snoc defines a Prism between a S and its init and last element A and thus can be seen as the reverse of Cons. It provides a way to attach or detach elements on the end side of a structure.
Parameters
last of Prism focus, A is supposed to be unique for a given S.