Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 1f2b142b9d2ef4849a6f5316fa1c5b12 > files > 1476

ghc-6.10.4-1mdv2010.0.i586.rpm

<!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.List</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.List</DIV
><DIV CLASS="mini-synopsis"
><H1
>Basic functions
</H1
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3A%2B%2B" TARGET="main"
>(++)</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Ahead" TARGET="main"
>head</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Alast" TARGET="main"
>last</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Atail" TARGET="main"
>tail</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Ainit" TARGET="main"
>init</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Anull" TARGET="main"
>null</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Alength" TARGET="main"
>length</A
></DIV
> <H1
>List transformations
</H1
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Amap" TARGET="main"
>map</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Areverse" TARGET="main"
>reverse</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Aintersperse" TARGET="main"
>intersperse</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Aintercalate" TARGET="main"
>intercalate</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Atranspose" TARGET="main"
>transpose</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Asubsequences" TARGET="main"
>subsequences</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Apermutations" TARGET="main"
>permutations</A
></DIV
> <H1
>Reducing lists (folds)
</H1
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Afoldl" TARGET="main"
>foldl</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Afoldl%27" TARGET="main"
>foldl'</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Afoldl1" TARGET="main"
>foldl1</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Afoldl1%27" TARGET="main"
>foldl1'</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Afoldr" TARGET="main"
>foldr</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Afoldr1" TARGET="main"
>foldr1</A
></DIV
> <H2
>Special folds
</H2
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Aconcat" TARGET="main"
>concat</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AconcatMap" TARGET="main"
>concatMap</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Aand" TARGET="main"
>and</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Aor" TARGET="main"
>or</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Aany" TARGET="main"
>any</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Aall" TARGET="main"
>all</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Asum" TARGET="main"
>sum</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Aproduct" TARGET="main"
>product</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Amaximum" TARGET="main"
>maximum</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Aminimum" TARGET="main"
>minimum</A
></DIV
> <H1
>Building lists
</H1
> <H2
>Scans
</H2
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Ascanl" TARGET="main"
>scanl</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Ascanl1" TARGET="main"
>scanl1</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Ascanr" TARGET="main"
>scanr</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Ascanr1" TARGET="main"
>scanr1</A
></DIV
> <H2
>Accumulating maps
</H2
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AmapAccumL" TARGET="main"
>mapAccumL</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AmapAccumR" TARGET="main"
>mapAccumR</A
></DIV
> <H2
>Infinite lists
</H2
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Aiterate" TARGET="main"
>iterate</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Arepeat" TARGET="main"
>repeat</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Areplicate" TARGET="main"
>replicate</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Acycle" TARGET="main"
>cycle</A
></DIV
> <H2
>Unfolding
</H2
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Aunfoldr" TARGET="main"
>unfoldr</A
></DIV
> <H1
>Sublists
</H1
> <H2
>Extracting sublists
</H2
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Atake" TARGET="main"
>take</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Adrop" TARGET="main"
>drop</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AsplitAt" TARGET="main"
>splitAt</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AtakeWhile" TARGET="main"
>takeWhile</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AdropWhile" TARGET="main"
>dropWhile</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Aspan" TARGET="main"
>span</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Abreak" TARGET="main"
>break</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AstripPrefix" TARGET="main"
>stripPrefix</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Agroup" TARGET="main"
>group</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Ainits" TARGET="main"
>inits</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Atails" TARGET="main"
>tails</A
></DIV
> <H2
>Predicates
</H2
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AisPrefixOf" TARGET="main"
>isPrefixOf</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AisSuffixOf" TARGET="main"
>isSuffixOf</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AisInfixOf" TARGET="main"
>isInfixOf</A
></DIV
> <H1
>Searching lists
</H1
> <H2
>Searching by equality
</H2
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Aelem" TARGET="main"
>elem</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AnotElem" TARGET="main"
>notElem</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Alookup" TARGET="main"
>lookup</A
></DIV
> <H2
>Searching with a predicate
</H2
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Afind" TARGET="main"
>find</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Afilter" TARGET="main"
>filter</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Apartition" TARGET="main"
>partition</A
></DIV
> <H1
>Indexing lists
</H1
>  <DIV CLASS="decl"
><A HREF="Data-List.html#v%3A%21%21" TARGET="main"
>(!!)</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AelemIndex" TARGET="main"
>elemIndex</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AelemIndices" TARGET="main"
>elemIndices</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AfindIndex" TARGET="main"
>findIndex</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AfindIndices" TARGET="main"
>findIndices</A
></DIV
> <H1
>Zipping and unzipping lists
</H1
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Azip" TARGET="main"
>zip</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Azip3" TARGET="main"
>zip3</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Azip4" TARGET="main"
>zip4</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Azip5" TARGET="main"
>zip5</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Azip6" TARGET="main"
>zip6</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Azip7" TARGET="main"
>zip7</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AzipWith" TARGET="main"
>zipWith</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AzipWith3" TARGET="main"
>zipWith3</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AzipWith4" TARGET="main"
>zipWith4</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AzipWith5" TARGET="main"
>zipWith5</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AzipWith6" TARGET="main"
>zipWith6</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AzipWith7" TARGET="main"
>zipWith7</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Aunzip" TARGET="main"
>unzip</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Aunzip3" TARGET="main"
>unzip3</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Aunzip4" TARGET="main"
>unzip4</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Aunzip5" TARGET="main"
>unzip5</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Aunzip6" TARGET="main"
>unzip6</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Aunzip7" TARGET="main"
>unzip7</A
></DIV
> <H1
>Special lists
</H1
> <H2
>Functions on strings
</H2
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Alines" TARGET="main"
>lines</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Awords" TARGET="main"
>words</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Aunlines" TARGET="main"
>unlines</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Aunwords" TARGET="main"
>unwords</A
></DIV
> <H2
>&quot;Set&quot; operations
</H2
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Anub" TARGET="main"
>nub</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Adelete" TARGET="main"
>delete</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3A%5C%5C" TARGET="main"
>(\\)</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Aunion" TARGET="main"
>union</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Aintersect" TARGET="main"
>intersect</A
></DIV
> <H2
>Ordered lists
</H2
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Asort" TARGET="main"
>sort</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3Ainsert" TARGET="main"
>insert</A
></DIV
> <H1
>Generalized functions
</H1
> <H2
>The &quot;<TT
>By</TT
>&quot; operations
</H2
>  <H3
>User-supplied equality (replacing an <TT
>Eq</TT
> context)
</H3
>  <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AnubBy" TARGET="main"
>nubBy</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AdeleteBy" TARGET="main"
>deleteBy</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AdeleteFirstsBy" TARGET="main"
>deleteFirstsBy</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AunionBy" TARGET="main"
>unionBy</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AintersectBy" TARGET="main"
>intersectBy</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AgroupBy" TARGET="main"
>groupBy</A
></DIV
> <H3
>User-supplied comparison (replacing an <TT
>Ord</TT
> context)
</H3
>  <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AsortBy" TARGET="main"
>sortBy</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AinsertBy" TARGET="main"
>insertBy</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AmaximumBy" TARGET="main"
>maximumBy</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AminimumBy" TARGET="main"
>minimumBy</A
></DIV
> <H2
>The &quot;<TT
>generic</TT
>&quot; operations
</H2
>  <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AgenericLength" TARGET="main"
>genericLength</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AgenericTake" TARGET="main"
>genericTake</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AgenericDrop" TARGET="main"
>genericDrop</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AgenericSplitAt" TARGET="main"
>genericSplitAt</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AgenericIndex" TARGET="main"
>genericIndex</A
></DIV
> <DIV CLASS="decl"
><A HREF="Data-List.html#v%3AgenericReplicate" TARGET="main"
>genericReplicate</A
></DIV
></DIV
></DIV
></BODY
></HTML
>