indexation 0.4.8 → 0.4.9
raw patch · 2 files changed
+7/−1 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Indexation.Data: countIndexSet :: IndexSet a -> Int
+ Indexation.Data: invertIndexSet :: IndexSet a -> IndexSet a
Files
- indexation.cabal +1/−1
- library/Indexation/Functions.hs +6/−0
indexation.cabal view
@@ -1,5 +1,5 @@ name: indexation-version: 0.4.8+version: 0.4.9 category: Data synopsis: Tools for entity indexation description: A set of tools for indexing entities
library/Indexation/Functions.hs view
@@ -47,3 +47,9 @@ indexSetByMinCount :: Word32 -> IndexCounts a -> IndexSet a indexSetByMinCount min (IndexCounts countVec) = IndexSet (UnboxedVector.map (Bit.fromBool . (>= min)) countVec)++countIndexSet :: IndexSet a -> Int+countIndexSet (IndexSet vec) = BitVec.countBits vec++invertIndexSet :: IndexSet a -> IndexSet a+invertIndexSet (IndexSet vec) = IndexSet (BitVec.invert vec)