HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

ModuleAgda-2.7.0.1Haskell2010

Agda.Utils.Three

Tools for 3-way partitioning.

  • 2 types
  • 4 values
  • PackageAgda-2.7.0.1
  • Exports6
  • LanguageHaskell2010
  • LicenceMIT
  • SourceThree.hs
datadata Three
#

Enum type with 3 elements.

Instances5Bounded, Enum, Eq, Ord, Show
  • Bounded ThreeDefined in Agda-2.7.0.1 · Agda.Utils.Three
  • Enum ThreeDefined in Agda-2.7.0.1 · Agda.Utils.Three
  • Eq ThreeDefined in Agda-2.7.0.1 · Agda.Utils.Three
  • Ord ThreeDefined in Agda-2.7.0.1 · Agda.Utils.Three
  • Show ThreeDefined in Agda-2.7.0.1 · Agda.Utils.Three
valuepartition3 :: (a -> Three) -> [a] -> ([a], [a], [a])
#

Partition a list into 3 groups.

Preserves the relative order or elements.

valuepartitionEithers3 :: [Either3 a b c] -> ([a], [b], [c])
#

Partition a list into 3 groups.

Preserves the relative order or elements.