Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Histogram = Histogram {}
- freq :: Histogram -> Histogram
- fill :: [Double] -> [Double] -> Histogram
- data DealOvers
- fromHist :: DealOvers -> Histogram -> [Rect Double]
- hist :: [Double] -> Double -> Fold Double Histogram
- labels :: DealOvers -> [Double] -> [Text]
- insert :: Ord a => a -> [a] -> [a]
- insertW :: Histogram -> Double -> Double -> Histogram
- insertWs :: Histogram -> [(Double, Double)] -> Histogram
Documentation
insert :: Ord a => a -> [a] -> [a] #
The insert
function takes an element and a list and inserts the
element into the list at the first position where it is less
than or equal to the next element. In particular, if the list
is sorted before the call, the result will also be sorted.
It is a special case of insertBy
, which allows the programmer to
supply their own comparison function.