Maintainer | Ertugrul Soeylemez <es@ertes.de> |
---|---|
Safe Haskell | None |
This module implements very fast and compact query-only sets.
QuickSet
QuickSets are sets that use a compact unboxed vector as the internal representation. As such QuickSets are always strict in the values.
Construction
fromListN :: (Ord a, Unbox a) => Int -> [a] -> QuickSet aSource
Convert a prefix of the given length of the given list to a
QuickSet
.
fromVector :: (Ord a, Unbox a) => Vector a -> QuickSet aSource
Convert an unboxed vector to a QuickSet
.