<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--Rendered using the Haskell Html Library v0.2--> <HTML ><HEAD ><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" ><TITLE >Data.Text.Lazy</TITLE ><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css" ><SCRIPT SRC="haddock-util.js" TYPE="text/javascript" ></SCRIPT ></HEAD ><BODY ><DIV CLASS="outer" ><DIV CLASS="mini-topbar" >Data.Text.Lazy</DIV ><DIV CLASS="mini-synopsis" ><DIV CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A HREF="Data-Text-Lazy.html#t%3AText" TARGET="main" >Text</A > </DIV > <H1 >Creation and elimination </H1 > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Apack" TARGET="main" >pack</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Aunpack" TARGET="main" >unpack</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Asingleton" TARGET="main" >singleton</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Aempty" TARGET="main" >empty</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AfromChunks" TARGET="main" >fromChunks</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AtoChunks" TARGET="main" >toChunks</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AtoStrict" TARGET="main" >toStrict</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AfromStrict" TARGET="main" >fromStrict</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AfoldrChunks" TARGET="main" >foldrChunks</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AfoldlChunks" TARGET="main" >foldlChunks</A ></DIV > <H1 >Basic interface </H1 > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Acons" TARGET="main" >cons</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Asnoc" TARGET="main" >snoc</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Aappend" TARGET="main" >append</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Auncons" TARGET="main" >uncons</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Ahead" TARGET="main" >head</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Alast" TARGET="main" >last</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Atail" TARGET="main" >tail</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Ainit" TARGET="main" >init</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Anull" TARGET="main" >null</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Alength" TARGET="main" >length</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AcompareLength" TARGET="main" >compareLength</A ></DIV > <H1 >Transformations </H1 > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Amap" TARGET="main" >map</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Aintercalate" TARGET="main" >intercalate</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Aintersperse" TARGET="main" >intersperse</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Atranspose" TARGET="main" >transpose</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Areverse" TARGET="main" >reverse</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Areplace" TARGET="main" >replace</A ></DIV > <H2 >Case conversion </H2 > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AtoCaseFold" TARGET="main" >toCaseFold</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AtoLower" TARGET="main" >toLower</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AtoUpper" TARGET="main" >toUpper</A ></DIV > <H2 >Justification </H2 > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AjustifyLeft" TARGET="main" >justifyLeft</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AjustifyRight" TARGET="main" >justifyRight</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Acenter" TARGET="main" >center</A ></DIV > <H1 >Folds </H1 > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Afoldl" TARGET="main" >foldl</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Afoldl%27" TARGET="main" >foldl'</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Afoldl1" TARGET="main" >foldl1</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Afoldl1%27" TARGET="main" >foldl1'</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Afoldr" TARGET="main" >foldr</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Afoldr1" TARGET="main" >foldr1</A ></DIV > <H2 >Special folds </H2 > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Aconcat" TARGET="main" >concat</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AconcatMap" TARGET="main" >concatMap</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Aany" TARGET="main" >any</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Aall" TARGET="main" >all</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Amaximum" TARGET="main" >maximum</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Aminimum" TARGET="main" >minimum</A ></DIV > <H1 >Construction </H1 > <H2 >Scans </H2 > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Ascanl" TARGET="main" >scanl</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Ascanl1" TARGET="main" >scanl1</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Ascanr" TARGET="main" >scanr</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Ascanr1" TARGET="main" >scanr1</A ></DIV > <H2 >Accumulating maps </H2 > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AmapAccumL" TARGET="main" >mapAccumL</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AmapAccumR" TARGET="main" >mapAccumR</A ></DIV > <H2 >Generation and unfolding </H2 > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Areplicate" TARGET="main" >replicate</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Aunfoldr" TARGET="main" >unfoldr</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AunfoldrN" TARGET="main" >unfoldrN</A ></DIV > <H1 >Substrings </H1 > <H2 >Breaking strings </H2 > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Atake" TARGET="main" >take</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Adrop" TARGET="main" >drop</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AtakeWhile" TARGET="main" >takeWhile</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AdropWhile" TARGET="main" >dropWhile</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AdropWhileEnd" TARGET="main" >dropWhileEnd</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AdropAround" TARGET="main" >dropAround</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Astrip" TARGET="main" >strip</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AstripStart" TARGET="main" >stripStart</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AstripEnd" TARGET="main" >stripEnd</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AsplitAt" TARGET="main" >splitAt</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AspanBy" TARGET="main" >spanBy</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Abreak" TARGET="main" >break</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AbreakEnd" TARGET="main" >breakEnd</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AbreakBy" TARGET="main" >breakBy</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Agroup" TARGET="main" >group</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AgroupBy" TARGET="main" >groupBy</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Ainits" TARGET="main" >inits</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Atails" TARGET="main" >tails</A ></DIV > <H2 >Breaking into many substrings </H2 > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Asplit" TARGET="main" >split</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AsplitBy" TARGET="main" >splitBy</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AchunksOf" TARGET="main" >chunksOf</A ></DIV > <H2 >Breaking into lines and words </H2 > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Alines" TARGET="main" >lines</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Awords" TARGET="main" >words</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Aunlines" TARGET="main" >unlines</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Aunwords" TARGET="main" >unwords</A ></DIV > <H1 >Predicates </H1 > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AisPrefixOf" TARGET="main" >isPrefixOf</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AisSuffixOf" TARGET="main" >isSuffixOf</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AisInfixOf" TARGET="main" >isInfixOf</A ></DIV > <H2 >View patterns </H2 > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AstripPrefix" TARGET="main" >stripPrefix</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AstripSuffix" TARGET="main" >stripSuffix</A ></DIV > <H1 >Searching </H1 > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Afilter" TARGET="main" >filter</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Afind" TARGET="main" >find</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AfindBy" TARGET="main" >findBy</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3ApartitionBy" TARGET="main" >partitionBy</A ></DIV > <H1 >Indexing </H1 > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Aindex" TARGET="main" >index</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Acount" TARGET="main" >count</A ></DIV > <H1 >Zipping and unzipping </H1 > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3Azip" TARGET="main" >zip</A ></DIV > <DIV CLASS="decl" ><A HREF="Data-Text-Lazy.html#v%3AzipWith" TARGET="main" >zipWith</A ></DIV ></DIV ></DIV ></BODY ></HTML >