purescript-deprecated/purescript-maps

Add split function

Opened this issue · 1 comments

The containers package in Haskell has the following function

split :: Ord k => k -> Map k a -> (Map k a, Map k a)

where the left map contains entries strictly less than the given key and the right map contains entries strictly greater than the given key.

This has been sitting for a little while... I'll have a look at it.