"_      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^Safe_ A strict `a A strict bcConvert a to bdConvert b to aeConvert _ to b _fgahicde _fgahicde_fgahicde Trustworthy4;IN=$A Handler for the upstream input of 3Any lens, traversal, or prism will type-check as a  xinstance Monad m => Monoid (EndoM m a) where mempty = EndoM return mappend (EndoM f) (EndoM g) = EndoM (f <=< g)&A handler for the upstream input of a 3Any lens, traversal, or prism will type-check as a 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 jM 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   extract Apply a strict left  to a k container Like   , but monadic Convert a strict left  into a scan )Fold all values within a container using l and m  Convert a "foldMap" to a /Get the first element of a container or return n if the container is empty.Get the last element of a container or return n if the container is empty[Get the last element of a container or return a default value if the container is emptyReturn the last N elementsReturns o if the container is empty, p otherwise"Return the length of the containerReturns o if all elements are o, p otherwiseReturns o if any element is o, p otherwise(all predicate) returns o, if all elements satisfy the predicate, p otherwise(any predicate) returns o- if any element satisfies the predicate, p otherwise Computes the sum of all elements!Computes the product all elementsComputes the maximum elementNComputes the maximum element with respect to the given comparison functionComputes the minimum elementNComputes the minimum element with respect to the given comparison function(elem a) returns o* if the container has an element equal to a, p otherwise (notElem a) returns p* if the container has an element equal to a, o otherwise (find predicate)? returns the first element that satisfies the predicate or n& if no element satisfies the predicate! (index n) returns the n th element of the container, or n< if the container has an insufficient number of elements" (elemIndex a)4 returns the index of the first element that equals a , or n if no element matches#(findIndex predicate)M returns the index of the first element that satisfies the predicate, or n& if no element satisfies the predicate$/Pick a random element, using reservoir sampling%6Pick several random elements, using reservoir sampling&AConverts an effectful function to a fold. Specialized version of '.'(Converts an effectful function to a fold Qsink (f <> g) = sink f <> sink g -- if `(<>)` is commutative sink mempty = mempty(Like , except with a more general q return value)Like !, except with a more general r argument*Fold 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 vector0Upgrade a fold to accept the  type1.Upgrade a more traditional fold to accept the  type2%Upgrade a monadic fold to accept the  type36Upgrade a more traditional monadic fold to accept the  type4 Generalize a  to a  Rgeneralize (pure r) = pure r generalize (f <*> x) = generalize f <*> generalize x5Simplify a pure  to a  Jsimplify (pure r) = pure r simplify (f <*> x) = simplify f <*> simplify x6Shift a 3 from one monad to another with a morphism such as lift or liftIO!; the effect is the same as .7Allows to continue feeding a 4 even after passing it to a function that closes it. For pure s, this is provided by the s instance.8 _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 b0. The initial accumulator is retrieved from the k, the result is None for empty containers.9(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;(handles t folder) transforms the input of a ' using a lens, traversal, or prism: handles _1 :: Fold a r -> Fold (a, b) r handles _Left :: Fold a r -> Fold (Either a b) r handles traverse :: Traversable t => Fold a r -> Fold (t a) r handles folded :: Foldable t => Fold a r -> Fold (t a) r,fold (handles traverse sum) [[1..5],[6..10]]55^fold (handles (traverse.traverse) sum) [[Nothing, Just 2, Just 7],[Just 13, Nothing, Just 20]]42*fold (handles (filtered even) sum) [1..10]30<fold (handles _2 mconcat) [(1,"Hello "),(2,"World"),(3,"!")]"Hello World!" 8handles id = id handles (f . g) = handles f . handles g Nhandles t (pure r) = pure r handles t (f <*> x) = handles t f <*> handles t x<(handlesM t folder) transforms the input of a ' using a lens, traversal, or prism: handlesM _1 :: FoldM m a r -> FoldM (a, b) r handlesM _Left :: FoldM m a r -> FoldM (Either a b) r handlesM traverse :: Traversable t => FoldM m a r -> FoldM m (t a) r handlesM folded :: Foldable t => FoldM m a r -> FoldM m (t a) r< obeys these laws: <handlesM id = id handlesM (f . g) = handlesM f . handlesM g RhandlesM t (pure r) = pure r handlesM t (f <*> x) = handlesM t f <*> handlesM t x= ^folded :: Foldable t => Fold (t a) a handles folded :: Foldable t => Fold a r -> Fold (t a) r>*fold (handles (filtered even) sum) [1..10]306foldM (handlesM (filtered even) (mapM_ print)) [1..10]246810]tuvwxyz{|}~  !"#$%&'()*+,-./0123456789:;<=>Dk  !"#$%&'()*+,-./0123456789:;<=>?  !"#$%&'()*+,-./0123456789:;<=>Ptuvwxyz{|}~  !"#$%&'()*+,-./0123456789:;<=>None?Apply a strict left  to a lazy bytestring@.Get the first byte of a byte stream or return n if the stream is emptyA-Get the last byte of a byte stream or return n if the byte stream is emptyBReturns o if the byte stream is empty, p otherwiseC-Return the length of the byte stream in bytesD(all predicate) returns o% if all bytes satisfy the predicate, p otherwiseE(any predicate) returns o* if any byte satisfies the predicate, p otherwiseFComputes the maximum byteGComputes the minimum byteH (elem w8) returns o( if the byte stream has a byte equal to w8, p otherwiseI (notElem w8) returns p( if the byte stream has a byte equal to w8, o otherwiseJ(find predicate)< returns the first byte that satisfies the predicate or n# if no byte satisfies the predicateK (index n) returns the nth byte of the byte stream, or n6 if the stream has an insufficient number of bytesL(elemIndex w8)1 returns the index of the first byte that equals w8 , or n if no byte matchesM(findIndex predicate)J returns the index of the first byte that satisfies the predicate, or n# if no byte satisfies the predicateNcount w8 returns the number of times w8 appears?@ABCDEFGHIJKLMN?@ABCDEFGHIJKLMN?@ABCEDFGHIJKLMN?@ABCDEFGHIJKLMNSafeOApply a strict left  to lazy textP3Get the first character of a text stream or return n if the stream is emptyQ2Get the last character of a text stream or return n if the text stream is emptyRReturns o if the text stream is empty, p otherwiseS2Return the length of the text stream in charactersT(all predicate) returns o. if all characters satisfy the predicate, p otherwiseU(any predicate) returns o/ if any character satisfies the predicate, p otherwiseVComputes the maximum characterWComputes the minimum characterX(elem c) returns o- if the text stream has a character equal to c, p otherwiseY (notElem c) returns p1 if the text stream has a character equal to c, o otherwiseZ(find predicate)A returns the first character that satisfies the predicate or n( if no character satisfies the predicate[ (index n) returns the n$th character of the text stream, or n; if the stream has an insufficient number of characters\ (elemIndex c)6 returns the index of the first character that equals c , or n if no character matches](findIndex predicate)O returns the index of the first character that satisfies the predicate, or n, if no character satisfies the predicate^ (count c) returns the number of times c appearsOPQRSTUVWXYZ[\]^OPQRSTUVWXYZ[\]^OPQRSUTVWXYZ[\]^OPQRSTUVWXYZ[\]^        !"#$%&'()*+,-./0123456789:;<=>?@AB  "#$%&'C  "#$%&'CDEFGHEIJKLMNOPQEIRESTEIUEIVEIWXYZXY[E\]E^_`abccdefghijkkllmnopqrstuvwxyz{|}X~Efoldl_9TsDtGirCbA4qYBaawDglk Control.FoldlControl.Foldl.ByteStringControl.Foldl.TextControl.Foldl.InternalControl.Monad.MorphhoistHandlerMEndoMappEndoMHandlerFoldMFoldfoldfoldMscanmconcatfoldMapheadlastlastDeflastNnulllengthandorallanysumproductmaximum maximumByminimum minimumByelemnotElemfindindex elemIndex findIndexrandomrandomNmapM_sink genericLength genericIndexlistrevListnubeqNubsetvectorpurelypurely_impurely impurely_ generalizesimplifyhoists duplicateM_Fold1premappremapMhandleshandlesMfoldedfilteredcountEither'base Data.EitherEitherMaybe'GHC.BaseMaybelazystricthushLeft'Right'Just'Nothing' Applicative Data.FoldableFoldablemappendmemptyNothingghc-prim GHC.TypesTrueFalseGHC.NumNumGHC.RealIntegralcomon_K4OQWQq6pCy1f0aZof1Cb2Control.ComonadComonad RandomNState_size _reservoir _position_gen VectorState IncompleteCompletePair3Pair maxChunkSize $fMonoidEndoM$fFloatingFoldM$fFractionalFoldM $fNumFoldM $fMonoidFoldM$fProfunctorFoldM$fApplicativeFoldM$fFunctorFoldM$fFloatingFold$fFractionalFold $fNumFold $fMonoidFold$fApplicativeFold $fComonadFold$fProfunctorFold $fFunctorFoldGHC.Prim RealWorldprimi_EphY2c7CCxSCBKjAN0YTR3Control.Monad.Primitive PrimMonadvecto_LmZ3LQW4ivu8MsQuVguklnData.Vector.Generic.BaseMutableVectorGHC.WordWord8bytes_6VWy06pWzJq9evDvK2d4w6Data.ByteString.Internal ByteStringtext_HmqVQnZSpjaC156ABqPhneData.Text.InternalText