F|N      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLM Safe-InferredN A strict OP A strict QRConvert P to QSConvert Q to PTConvert N to Q NUVPWXRST NUVPWXRSTNVUPXWRST Trustworthy:HM.Like , but monadic.A '# m a b' processes elements of type a, and results in a monadic value of type m b.FoldM   step   initial   extractEfficient representation of a left fold that preserves the fold's step function, initial accumulator, and extraction functionThis allows the YM instance to assemble derived folds that traverse the container only onceA '! a b' processes elements of type a$ and results in a value of type b.Fold   step   initial   extractApply a strict left  to a Z containerLike  , but monadicConvert a strict left  into a scan)Fold all values within a container using [ and \ Convert a "foldMap" to a  /Get the first element of a container or return ] if the container is empty .Get the last element of a container or return ] if the container is empty [Get the last element of a container or return a default value if the container is empty Returns ^ if the container is empty, _ otherwise "Return the length of the containerReturns ^ if all elements are ^, _ otherwiseReturns ^ if any element is ^, _ otherwise(all predicate) returns ^, if all elements satisfy the predicate, _ otherwise(any predicate) returns ^- if any element satisfies the predicate, _ otherwise Computes the sum of all elements!Computes the product all elementsComputes the maximum elementComputes the minimum element(elem a) returns ^* if the container has an element equal to a, _ otherwise (notElem a) returns _* if the container has an element equal to a, ^ otherwise(find predicate)? returns the first element that satisfies the predicate or ]& if no element satisfies the predicate (index n) returns the n th element of the container, or ]< if the container has an insufficient number of elements (elemIndex a)4 returns the index of the first element that equals a , or ] if no element matches(findIndex predicate)M returns the index of the first element that satisfies the predicate, or ]& if no element satisfies the predicate/Pick a random element, using reservoir samplingLike  , except with a more general ` return valueLike , except with a more general a argumentFold all values into a list -Fold all values into a list, in reverse order! O(n log n)`. Fold values into a list with duplicates removed, while preserving their first occurrences"O(n^2)`. Fold values into a list with duplicates removed, while preserving their first occurrences#Fold values into a set$Fold all values into a vector%Upgrade a fold to accept the  type&%Upgrade a monadic fold to accept the  type' Generalize a  to a  Rgeneralize (pure r) = pure r generalize (f <*> x) = generalize f <*> generalize x(Simplify a pure  to a  Jsimplify (pure r) = pure r simplify (f <*> x) = simplify f <*> simplify x) _Fold1 step returns a new  using just a step function that has the same type for the accumulator and the element. The result type is the accumulator type wrapped in Q0. The initial accumulator is retrieved from the Z, the result is None for empty containers.*(premap f folder) returns a new  where f is applied at each step 6fold (premap f folder) list = fold folder (map f list)!fold (premap Sum mconcat) [1..10]Sum {getSum = 55}fold mconcat (map Sum [1..10])Sum {getSum = 55} 4premap id = id premap (f . g) = premap g . premap f Jpremap k (pure r) = pure r premap k (f <*> x) = premap k f <*> premap k x+(premapM f folder) returns a new - where f is applied to each input element 9foldM (premapM f folder) list = foldM folder (map f list) 6premapM id = id premapM (f . g) = premap g . premap f NpremapM k (pure r) = pure r premapM k (f <*> x) = premapM k f <*> premapM k x,(pretraverse t folder)' traverses each incoming element using  Traversal' t and folds every target of the  Traversal'0fold (pretraverse traverse sum) [[1..5],[6..10]]55bfold (pretraverse (traverse.traverse) sum) [[Nothing, Just 2, Just 7],[Just 13, Nothing, Just 20]]426fold (pretraverse (filtered even) sum) [1,3,5,7,21,21]42@fold (pretraverse _2 mconcat) [(1,"Hello "),(2,"World"),(3,"!")]"Hello World!" Hpretraverse id = id pretraverse (f . g) = pretraverse f . pretraverse g ^pretraverse t (pure r) = pure r pretraverse t (f <*> x) = pretraverse t f <*> pretraverse t x-(pretraverseM t folder)' traverses each incoming element using  Traversal' t and folds every target of the  Traversal' LpretraverseM id = id pretraverseM (f . g) = pretraverseM f . pretraverseM g bpretraverseM t (pure r) = pure r pretraverseM t (f <*> x) = pretraverseM t f <*> pretraverseM t xDbcdefghi  !"#j$%&'()*+,-klmnopqrstuvw1Zxy  !"#$%&'()*+,-.  !"#$%&'()*+,->bcdefghi  !"#j$%&'()*+,-klmnopqrstuvwNone.Apply a strict left  to a lazy bytestring/.Get the first byte of a byte stream or return ] if the stream is empty0-Get the last byte of a byte stream or return ] if the byte stream is empty1Returns ^ if the byte stream is empty, _ otherwise2-Return the length of the byte stream in bytes3(all predicate) returns ^% if all bytes satisfy the predicate, _ otherwise4(any predicate) returns ^* if any byte satisfies the predicate, _ otherwise5Computes the maximum byte6Computes the minimum byte7 (elem w8) returns ^( if the byte stream has a byte equal to w8, _ otherwise8 (notElem w8) returns _( if the byte stream has a byte equal to w8, ^ otherwise9(find predicate)< returns the first byte that satisfies the predicate or ]# if no byte satisfies the predicate: (index n) returns the nth byte of the byte stream, or ]6 if the stream has an insufficient number of bytes;(elemIndex w8)1 returns the index of the first byte that equals w8 , or ] if no byte matches<(findIndex predicate)J returns the index of the first byte that satisfies the predicate, or ]# if no byte satisfies the predicate=count w8 returns the number of times w8 appears./0123456789:;<=z{./0123456789:;<=./0124356789:;<=./0123456789:;<= Safe-Inferred>Apply a strict left  to lazy text?3Get the first character of a text stream or return ] if the stream is empty@2Get the last character of a text stream or return ] if the text stream is emptyAReturns ^ if the text stream is empty, _ otherwiseB2Return the length of the text stream in charactersC(all predicate) returns ^. if all characters satisfy the predicate, _ otherwiseD(any predicate) returns ^/ if any character satisfies the predicate, _ otherwiseEComputes the maximum characterFComputes the minimum characterG(elem c) returns ^- if the text stream has a character equal to c, _ otherwiseH (notElem c) returns _1 if the text stream has a character equal to c, ^ otherwiseI(find predicate)A returns the first character that satisfies the predicate or ]( if no character satisfies the predicateJ (index n) returns the n$th character of the text stream, or ]; if the stream has an insufficient number of charactersK (elemIndex c)6 returns the index of the first character that equals c , or ] if no character matchesL(findIndex predicate)O returns the index of the first character that satisfies the predicate, or ], if no character satisfies the predicateM (count c) returns the number of times c appears>?@ABCDEFGHIJKLM|>?@ABCDEFGHIJKLM>?@ABDCEFGHIJKLM>?@ABCDEFGHIJKLM}      !"#$%&'()*+,-./0  1  1234563789:;<=>?3@A3BC3DE3DF37GHIJHIK3LM3NOPPQRSSTTUVWXYZ[\]^_`abcdefgh3ijklmnopq foldl-1.0.10 Control.FoldlControl.Foldl.ByteStringControl.Foldl.TextControl.Foldl.InternalFoldMFoldfoldfoldMscanmconcatfoldMapheadlastlastDefnulllengthandorallanysumproductmaximumminimumelemnotElemfindindex elemIndex findIndexrandom genericLength genericIndexlistrevListnubeqNubsetvectorpurelyimpurely generalizesimplify_Fold1premappremapM pretraverse pretraverseMcountEither'base Data.EitherEitherMaybe' Data.MaybeMaybelazystricthushRight'Left'Nothing'Just'Control.Applicative Applicative Data.FoldableFoldable Data.MonoidmappendmemptyNothingghc-prim GHC.TypesTrueFalseGHC.NumNumGHC.RealIntegralEndoMappEndoM Traversal'Pair3Pair maxChunkSize $fMonoidEndoM$fFloatingFoldM$fFractionalFoldM $fNumFoldM $fMonoidFoldM$fApplicativeFoldM$fFunctorFoldM$fFloatingFold$fFractionalFold $fNumFold $fMonoidFold$fApplicativeFold $fFunctorFold primitive-0.6Control.Monad.Primitive PrimMonadvector-0.10.12.3Data.Vector.Generic.BaseVectorGHC.WordWord8bytestring-0.10.4.0Data.ByteString.Internal ByteString text-1.2.0.4Data.Text.InternalText