Hoogle Search

Within LTS Haskell 24.34 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. enumerateFromThenTo :: forall (m :: Type -> Type) . (Enumerable a, Monad m) => Unfold m (a, a, a) a

    streamly-core Streamly.Internal.Data.Unfold

    Unfolds (from, then, to) generating a finite stream whose first element is from and the successive elements are in increments of then up to to. Enumeration can occur downwards or upwards depending on whether then comes before or after from.

    >>> Stream.toList $ Stream.unfold Unfold.enumerateFromThenTo (0, 2, 6)
    [0,2,4,6]
    
    >>> Stream.toList $ Stream.unfold Unfold.enumerateFromThenTo (0, (-2), (-6))
    [0,-2,-4,-6]
    
    Pre-release

  2. enumerateFromThenToFractional :: forall (m :: Type -> Type) a . (Monad m, Fractional a, Ord a) => Unfold m (a, a, a) a

    streamly-core Streamly.Internal.Data.Unfold

    No documentation available.

  3. enumerateFromThenToIntegral :: forall (m :: Type -> Type) a . (Monad m, Integral a) => Unfold m (a, a, a) a

    streamly-core Streamly.Internal.Data.Unfold

    No documentation available.

  4. enumerateFromThenToIntegralBounded :: forall (m :: Type -> Type) a . (Monad m, Integral a, Bounded a) => Unfold m (a, a, a) a

    streamly-core Streamly.Internal.Data.Unfold

    No documentation available.

  5. enumerateFromThenToSmall :: forall (m :: Type -> Type) a . (Monad m, Enum a) => Unfold m (a, a, a) a

    streamly-core Streamly.Internal.Data.Unfold

    Enumerate from given starting Enum value from and then Enum value next and to Enum value to with stride of (fromEnum next - fromEnum from) till to value. Internal

  6. enumerateFromTo :: forall (m :: Type -> Type) . (Enumerable a, Monad m) => Unfold m (a, a) a

    streamly-core Streamly.Internal.Data.Unfold

    Unfolds (from, to) generating a finite stream starting with the element from, enumerating the type up to the value to. If to is smaller than from then an empty stream is returned.

    >>> Stream.toList $ Stream.unfold Unfold.enumerateFromTo (0, 4)
    [0,1,2,3,4]
    
    For Fractional types, the last element is equal to the specified to value after rounding to the nearest integral value.
    >>> Stream.toList $ Stream.unfold Unfold.enumerateFromTo (1.1, 4)
    [1.1,2.1,3.1,4.1]
    
    >>> Stream.toList $ Stream.unfold Unfold.enumerateFromTo (1.1, 4.6)
    [1.1,2.1,3.1,4.1,5.1]
    
    Pre-release

  7. enumerateFromToFractional :: forall (m :: Type -> Type) a . (Monad m, Fractional a, Ord a) => Unfold m (a, a) a

    streamly-core Streamly.Internal.Data.Unfold

    Same as enumerateFromStepNum with a step of 1 and enumerating up to the specified upper limit rounded to the nearest integral value:

    >>> Stream.toList $ Stream.unfold Unfold.enumerateFromToFractional (0.1, 6.3)
    [0.1,1.1,2.1,3.1,4.1,5.1,6.1]
    
    Internal

  8. enumerateFromToIntegral :: forall (m :: Type -> Type) a . (Monad m, Integral a) => Unfold m (a, a) a

    streamly-core Streamly.Internal.Data.Unfold

    No documentation available.

  9. enumerateFromToIntegralBounded :: forall (m :: Type -> Type) a . (Monad m, Integral a, Bounded a) => Unfold m (a, a) a

    streamly-core Streamly.Internal.Data.Unfold

    No documentation available.

  10. enumerateFromToSmall :: forall (m :: Type -> Type) a . (Monad m, Enum a) => Unfold m (a, a) a

    streamly-core Streamly.Internal.Data.Unfold

    Enumerate from given starting Enum value from and to Enum value to with stride of 1 till to value. Internal

Page 74 of many | Previous | Next