úÎl¸iË/      !"#$%&'()*+,-.None/An infinite sequence. Beware#: If you use any function from the  Eq  or  Ord  C class to compare two equal streams, these functions will diverge. The  <:> % operator is an infix version of the   constructor. +Extract the first element of the sequence. 7Extract the sequence following the head of the stream. The  function takes a stream xs and returns all the  finite prefixes of xs. Note that this  is lazier then Data.List.inits:   inits _|_ = [] ::: _|_  while for Data.List.inits:  inits _|_ = _|_ The  function takes a stream xs and returns all the  suffixes of xs. <Apply a function uniformly over all elements of a sequence.  y xs" creates an alternating stream of  elements from xs and y. Interleave two Streams xs and ys, alternating elements  from each list. ; [x1,x2,...] `interleave` [y1,y2,...] == [x1,y1,x2,y2,...]  4 yields a stream of successive reduced values from: A scan f z [x1, x2, ...] == [z, z `f` x1, (z `f` x1) `f` x2, ...] scan' is a strict scan.   is a variant of  & that has no starting value argument: / scan1 f [x1, x2, ...] == [x1, x1 `f` x2, ...] scan1'. is a strict scan that has no starting value. 4 computes the transposition of a stream of streams.  f x) function produces the infinite sequence  of repeated applications of f to x. % iterate f x = [x, f x, f (f x), ..]  x3 returns a constant stream, where all elements are  equal to x.  xs$ returns the infinite repetition of xs: < cycle [1,2,3] = Cons 1 (Cons 2 (Cons 3 (Cons 1 (Cons 2 ... =The unfold function is similar to the unfold for lists. Note 6 there is no base case: all streams must be infinite.  n xs returns the first n elements of xs. Beware8: passing a negative integer as the first argument will  cause an error.  n xs drops the first n elements off the front of  the sequence xs. Beware8: passing a negative integer as the first argument will  cause an error. The  function takes an integer n and a stream xs 0 and returns a pair consisting of the prefix of xs of length  n= and the remaining stream immediately following this prefix. Beware8: passing a negative integer as the first argument will  cause an error.  p xs* returns the longest prefix of the stream  xs for which the predicate p holds.  p xs$ returns the suffix remaining after   p xs. Beware0: this function may diverge if every element of xs  satisfies p, e.g. dropWhile even (repeat 0) will loop.  p xs returns the longest prefix of xs that satisfies  p-, together with the remainder of the stream. The  p function is equivalent to  not . p.  p xs, removes any elements from xs that do not satisfy p. Beware6: this function may diverge if there is no element of  xs that satisfies p, e.g. filter odd (repeat 0) will loop. The  function takes a predicate p and a stream  xs>, and returns a pair of streams. The first stream corresponds  to the elements of xs for which p holds; the second stream  corresponds to the elements of xs for which p does not hold. Beware9: One of the elements of the tuple may be undefined. For  example, +fst (partition even (repeat 0)) == repeat 0 ; on the  other hand snd (partition even (repeat 0)) is undefined. The 1 function takes a stream and returns a stream of A lists such that flattening the resulting stream is equal to the ; argument. Moreover, each sublist in the resulting stream - contains only equal elements. For example, v group $ cycle "Mississippi" = "M" ::: "i" ::: "ss" ::: "i" ::: "ss" ::: "i" ::: "pp" ::: "i" ::: "M" ::: "i" ::: ... The isPrefix function returns True if the first argument is  a prefix of the second. xs !! n# returns the element of the stream xs at index  n0. Note that the head of the stream has index 0. Beware>: passing a negative integer as the first argument will cause  an error. The 1 function returns the index of the first element ( in the given stream which is equal (by /) to the query element, Beware:  x xs& will diverge if none of the elements  of xs equal x. The   function extends , by returning the I indices of all elements equal to the query element, in ascending order. Beware:   x xs will diverge if any suffix of  xs does not contain x. !The !5 function takes a predicate and a stream and returns L the index of the first element in the stream that satisfies the predicate, Beware: ! p xs) will diverge if none of the elements of  xs satisfy p. "The " function extends !, by returning the @ indices of all elements satisfying the predicate, in ascending  order. Beware: " p xs" will diverge if all the elements  of any suffix of xs fails to satisfy p. #The #6 function takes two streams and returns the stream of A pairs obtained by pairing elements at the same position in both  argument streams. $The $ function behaves as the # function, but works on  three streams. %The % function generalizes #. Rather than tupling = the functions, the elements are combined using the function ! passed as the first argument to %. &The & behaves as % but takes three stream  arguments. 'The ' function is the inverse of the # function. (The ( function is the inverse of the # function. )The )/ function breaks a stream of characters into a 7 stream of words, which were delimited by white space. Beware: if the stream of characters xs does not contain white  space, accessing the tail of words xs will loop. *The *% function is an inverse operation to ). It % joins words with separating spaces. +The +4 function breaks a stream of characters into a list @ of strings at newline characters. The resulting strings do not  contain newlines. Beware: if the stream of characters xs does not contain + newline characters, accessing the tail of lines xs will loop. ,The ,% function is an inverse operation to +. It = joins lines, after appending a terminating newline to each. -The -* converts a stream into an infinite list. .The . converts an infinite list to a  stream. Beware.: Passing a finite list, will cause an error. 0DA Show instance for Streams that takes the right associativity into  account and so doesn'1t put parenthesis around the tail of the Stream.  Note that 1 returns an infinite 2. 6  !"#$%&'()*+,-.0345678/  !"#$%&'()*+,-./  !"#%'$&()*+,-.5  !"#$%&'()*+,-.03456789      !"#$%&'()*+,-./01234567589:;<=>?@Stream-0.4.6.1 Data.StreamStreamCons<:>headtailinitstailsmap intersperse interleavescanscan'scan1scan1' transposeiteraterepeatcycleunfoldtakedropsplitAt takeWhile dropWhilespanbreakfilter partitiongroup isPrefixOf!! elemIndex elemIndices findIndex findIndiceszipzip3zipWithzipWith3unzipunzip3wordsunwordslinesunlinestoListfromListghc-prim GHC.Classes== $fShowStreambaseGHC.ShowshowGHC.BaseString$fSerialStream$fCoArbitraryStream$fArbitraryStream $fMonadStream$fApplicativeStream$fFunctorStream