Copyright | (C) Frank Staals |
---|---|
License | see the LICENSE file |
Maintainer | Frank Staals |
Safe Haskell | None |
Language | Haskell2010 |
Some basic types, mostly strict triples and pairs.
Strict Triples
strict triple
STR !a !b !c |
Instances
uniqueTriplets :: [a] -> [Three a] Source #
Generate All unique unordered triplets.
Strict Pairs
Strict pair
SP !a !b |
Instances
Bifunctor SP Source # | |
Functor (SP a) Source # | |
(Eq a, Eq b) => Eq (SP a b) Source # | |
(Ord a, Ord b) => Ord (SP a b) Source # | |
(Show a, Show b) => Show (SP a b) Source # | |
Generic (SP a b) Source # | |
(Semigroup a, Semigroup b) => Semigroup (SP a b) Source # | |
(Semigroup a, Semigroup b, Monoid a, Monoid b) => Monoid (SP a b) Source # | |
(NFData a, NFData b) => NFData (SP a b) Source # | |
Field1 (SP a b) (SP c b) a c Source # | |
Field2 (SP a b) (SP a c) b c Source # | |
type Rep (SP a b) Source # | |
Defined in Data.Util type Rep (SP a b) = D1 ('MetaData "SP" "Data.Util" "hgeometry-combinatorial-0.12.0.1-3UsM6nqO83QAAGVLl4vU5w" 'False) (C1 ('MetaCons "SP" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 b))) |
- Strict pair whose elements are of the same type.
Strict pair with both items the same
uniquePairs :: [a] -> [Two a] Source #
Given a list xs, generate all unique (unordered) pairs.
nonEmptyTails :: [a] -> [[a]] Source #
A version of List.tails in which we remove the emptylist