Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Unfoldr a = Unfoldr (forall x. (a -> x -> x) -> x -> x)
- fold :: Fold input output -> Unfoldr input -> output
- foldable :: Foldable foldable => foldable a -> Unfoldr a
- filter :: (a -> Bool) -> Unfoldr a -> Unfoldr a
- intsFrom :: Int -> Unfoldr Int
- intsInRange :: Int -> Int -> Unfoldr Int
- mapAssocs :: Map key value -> Unfoldr (key, value)
- intMapAssocs :: IntMap value -> Unfoldr (Int, value)
- byteStringBytes :: ByteString -> Unfoldr Word8
- shortByteStringBytes :: ShortByteString -> Unfoldr Word8
- primArray :: Prim prim => PrimArray prim -> Unfoldr prim
- primArrayWithIndices :: Prim prim => PrimArray prim -> Unfoldr (Int, prim)
- decimalDigits :: Integral a => a -> Unfoldr a
- reverseDecimalDigits :: Integral a => a -> Unfoldr a
- hexadecimalDigits :: Integral a => a -> Unfoldr a
- reverseHexadecimalDigits :: Integral a => a -> Unfoldr a
- reverseDigits :: Integral a => a -> a -> Unfoldr a
- reverse :: Unfoldr a -> Unfoldr a
- zipWithReverseIndex :: Unfoldr a -> Unfoldr (Int, a)
Documentation
Unfoldr (forall x. (a -> x -> x) -> x -> x) |
Instances
Monad Unfoldr # | |
Functor Unfoldr # | |
Applicative Unfoldr # | |
Foldable Unfoldr # | |
Defined in DeferredFolds.Defs.Unfoldr fold :: Monoid m => Unfoldr m -> m # foldMap :: Monoid m => (a -> m) -> Unfoldr a -> m # foldr :: (a -> b -> b) -> b -> Unfoldr a -> b # foldr' :: (a -> b -> b) -> b -> Unfoldr a -> b # foldl :: (b -> a -> b) -> b -> Unfoldr a -> b # foldl' :: (b -> a -> b) -> b -> Unfoldr a -> b # foldr1 :: (a -> a -> a) -> Unfoldr a -> a # foldl1 :: (a -> a -> a) -> Unfoldr a -> a # elem :: Eq a => a -> Unfoldr a -> Bool # maximum :: Ord a => Unfoldr a -> a # minimum :: Ord a => Unfoldr a -> a # | |
Alternative Unfoldr # | |
MonadPlus Unfoldr # | |
Eq a => Eq (Unfoldr a) # | |
Show a => Show (Unfoldr a) # | |
Semigroup (Unfoldr a) # | |
Monoid (Unfoldr a) # | |
intsFrom :: Int -> Unfoldr Int Source #
Ascending infinite stream of ints starting from the one specified
byteStringBytes :: ByteString -> Unfoldr Word8 Source #
Bytes of a bytestring
shortByteStringBytes :: ShortByteString -> Unfoldr Word8 Source #
Bytes of a short bytestring
primArrayWithIndices :: Prim prim => PrimArray prim -> Unfoldr (Int, prim) Source #
Elements of a prim array coming paired with indices
decimalDigits :: Integral a => a -> Unfoldr a Source #
Extract individual digits of a non-negative integral number.
reverseDecimalDigits :: Integral a => a -> Unfoldr a Source #
Extract individual digits of a non-negative integral number in reverse order.
More efficient than digits
.
hexadecimalDigits :: Integral a => a -> Unfoldr a Source #
reverseHexadecimalDigits :: Integral a => a -> Unfoldr a Source #
reverseDigits :: Integral a => a -> a -> Unfoldr a Source #