File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -226,20 +226,20 @@ size :: HashSet a -> Int
226
226
size = H. size . asMap
227
227
{-# INLINE size #-}
228
228
229
- -- | /O(min(n,W) )/ Return 'True' if the given value is present in this
229
+ -- | /O(log n )/ Return 'True' if the given value is present in this
230
230
-- set, 'False' otherwise.
231
231
member :: (Eq a , Hashable a ) => a -> HashSet a -> Bool
232
232
member a s = case H. lookup a (asMap s) of
233
233
Just _ -> True
234
234
_ -> False
235
235
{-# INLINABLE member #-}
236
236
237
- -- | /O(min(n,W) )/ Add the specified value to this set.
237
+ -- | /O(log n )/ Add the specified value to this set.
238
238
insert :: (Eq a , Hashable a ) => a -> HashSet a -> HashSet a
239
239
insert a = HashSet . H. insert a () . asMap
240
240
{-# INLINABLE insert #-}
241
241
242
- -- | /O(min(n,W) )/ Remove the specified value from this set if
242
+ -- | /O(log n )/ Remove the specified value from this set if
243
243
-- present.
244
244
delete :: (Eq a , Hashable a ) => a -> HashSet a -> HashSet a
245
245
delete a = HashSet . H. delete a . asMap
You can’t perform that action at this time.
0 commit comments