Safe Haskell | None |
---|---|
Language | Haskell2010 |
- pathFromVertices :: (Metric v, OrderedField n) => [Point v n] -> Path v n
- minMaxOf :: (Fractional a, Ord a) => Getting (Endo (Endo (V2 a))) s a -> s -> (a, a)
- enumFromToN :: Fractional n => n -> n -> Int -> [n]
- whenever :: Bool -> (a -> a) -> a -> a
- (&=) :: MonadState s m => ASetter' s b -> State b a -> m ()
- (&~~) :: Monad m => s -> StateT s m a -> m s
Documentation
pathFromVertices :: (Metric v, OrderedField n) => [Point v n] -> Path v n Source #
Type specialised version of fromVertices
.
minMaxOf :: (Fractional a, Ord a) => Getting (Endo (Endo (V2 a))) s a -> s -> (a, a) Source #
Minmax of a getter in the form V2 min max
. Returns (V2
(-Infinity) Infinity)
for empty folds.
enumFromToN :: Fractional n => n -> n -> Int -> [n] Source #
enumFromToN a b n
calculates a list from a
to b
in n
steps.