quickselect-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

Data.Vector.Mutable.Partition

Synopsis

Documentation

partition :: MVector v a => (a -> a -> Bool) -> v s a -> Int -> Int -> Int -> ST s Int Source #

partition (<=) xs lb ub n partitions the section of the list defined by the inclusive slice [lb,ub] around the element at n.