HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

ModuleAgda-2.7.0.1Haskell2010

Agda.Utils.VarSet

Var field implementation of sets of (small) natural numbers.

  • 1 type
  • 14 values
  • PackageAgda-2.7.0.1
  • Exports15
  • LanguageHaskell2010
  • LicenceMIT
  • SourceVarSet.hs
valuedelete :: Key -> IntSet -> IntSet
#

O(\min(n,W)). Delete a value in the set. Returns the original set when the value was not present.

valuefromList :: [Key] -> IntSet
#

O(n \min(n,W)). Create a set from a list of integers.

valuetoList :: IntSet -> [Key]
#

O(n). Convert the set to a list of elements. Subject to list fusion.

valuetoDescList :: IntSet -> [Key]
#

O(n). Convert the set to a descending list of elements. Subject to list fusion.