Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Combinators for a possibly-multidimensional measurement
The type (Age, Height)
is archetypal example of Measure
. It's typically
a fixed-length vector of non-negative " measurements ".
The anticipated use-cases involve some notion of a capacity that is limited
on a per-dimension basis. Thus the measure of each included candidate
quantifies how much of that capacity the candidate would occupy. See eg
splitAt
.
See the Measure
class for more.
Documentation
module Data.Measure.Class
(<=) ∷ Measure a ⇒ a → a → Bool infix 4 Source #
The partial order induced by min
It's only true if every component on the left is <=
the corresponding
component on the right.
(>=) ∷ Measure a ⇒ a → a → Bool infix 4 Source #
The partial order induced by max
It's only true if every component on the left is >=
the corresponding
component on the right.
drop ∷ Measure a ⇒ (e → a) → a → [e] → [e] Source #
snd .
, with a bit less allocationsplitAt
measure limit