purescript-catenable-lists
purescript-catenable-lists copied to clipboard
CatQueue: prepend
The Semigroup instance and append in https://github.com/purescript/purescript-catenable-lists/pull/30 are implemented as foldl snoc that appends successive elements from the CatQueue on the right. In most cases, that's probably what you'd want. One could also implement a prepend as a reverse and foldl cons of elements from the left CatQueue.