Non empty lists using Zippers
Question
How can I ensure that a list always contains at least one element.
Answer
Such a list is called a Zipper List:
Package: Use miyamoen/select-list for a complete implementation of a Zipper List.
Further reading
📦Package: miyamoen/select-list
📦Package: wernerdegroot/listzipper
Last updated