Copyright | (c) Roman Leshchinskiy 2008-2010 Alexey Kuleshevich 2020-2022 Aleksey Khudyakov 2020-2022 Andrew Lelechenko 2020-2022 |
---|---|
License | BSD-style |
Maintainer | Haskell Libraries Team <libraries@haskell.org> |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Data.Vector.Fusion.Bundle.Size
Description
Size hints for streams.
Documentation
clampedSubtract :: Size -> Size -> Size #
Subtract two sizes with clamping to 0, for drop-like things
smallerThan :: Int -> Size -> Size #
Select a safe smaller than known size.
upperBound :: Size -> Maybe Int #
Compute the maximum size from a size hint if possible
lowerBound :: Size -> Int #
Compute the minimum size from a size hint