purescript-catenable-lists icon indicating copy to clipboard operation
purescript-catenable-lists copied to clipboard

CatQueue: prepend

Open matthewleon opened this issue 7 years ago • 0 comments

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.

matthewleon avatar Feb 13 '18 04:02 matthewleon