This file is indexed.

/usr/share/doc/libghc-trifecta-doc/html/Text-Trifecta-Util-Array.html is in libghc-trifecta-doc 1.5.2-1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Text.Trifecta.Util.Array</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Text-Trifecta-Util-Array.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Text-Trifecta-Util-Array.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">trifecta-1.5.2: A modern parser combinator library with convenient diagnostics</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Edward Kmett 2011-2015
                Johan Tibell 2011</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>ekmett@gmail.com</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Portability</th><td>unknown</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Text.Trifecta.Util.Array</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Creation</a></li><li><a href="#g:2">Basic interface</a></li><li><a href="#g:3">Folds</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Fast zero based arrays, based on the implementation in the HAMT-branch of
 unordered-containers</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span> <a href="#t:Array">Array</a> a</li><li class="src short"><span class="keyword">data</span> <a href="#t:MArray">MArray</a> s a</li><li class="src short"><a href="#v:new">new</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad-ST.html#t:ST">ST</a> s (<a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s a)</li><li class="src short"><a href="#v:new_">new_</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad-ST.html#t:ST">ST</a> s (<a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s a)</li><li class="src short"><a href="#v:empty">empty</a> :: <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a</li><li class="src short"><a href="#v:singleton">singleton</a> :: a -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a</li><li class="src short"><a href="#v:length">length</a> :: <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:lengthM">lengthM</a> :: <a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:read">read</a> :: <a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad-ST.html#t:ST">ST</a> s a</li><li class="src short"><a href="#v:write">write</a> :: <a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad-ST.html#t:ST">ST</a> s ()</li><li class="src short"><a href="#v:index">index</a> :: <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; a</li><li class="src short"><a href="#v:index_">index_</a> :: <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad-ST.html#t:ST">ST</a> s a</li><li class="src short"><a href="#v:indexM_">indexM_</a> :: <a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad-ST.html#t:ST">ST</a> s a</li><li class="src short"><a href="#v:update">update</a> :: <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> e -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; e -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> e</li><li class="src short"><a href="#v:insert">insert</a> :: <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> e -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; e -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> e</li><li class="src short"><a href="#v:delete">delete</a> :: <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> e -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> e</li><li class="src short"><a href="#v:unsafeFreeze">unsafeFreeze</a> :: <a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad-ST.html#t:ST">ST</a> s (<a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a)</li><li class="src short"><a href="#v:run">run</a> :: (<span class="keyword">forall</span> s. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad-ST.html#t:ST">ST</a> s (<a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s e)) -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> e</li><li class="src short"><a href="#v:run2">run2</a> :: (<span class="keyword">forall</span> s. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad-ST.html#t:ST">ST</a> s (<a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s e, a)) -&gt; (<a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> e, a)</li><li class="src short"><a href="#v:copy">copy</a> :: <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> e -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s e -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad-ST.html#t:ST">ST</a> s ()</li><li class="src short"><a href="#v:copyM">copyM</a> :: <a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s e -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s e -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad-ST.html#t:ST">ST</a> s ()</li><li class="src short"><a href="#v:foldl-39-">foldl'</a> :: (b -&gt; a -&gt; b) -&gt; b -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a -&gt; b</li><li class="src short"><a href="#v:foldr">foldr</a> :: (a -&gt; b -&gt; b) -&gt; b -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a -&gt; b</li><li class="src short"><a href="#v:thaw">thaw</a> :: <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> e -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad-ST.html#t:ST">ST</a> s (<a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s e)</li><li class="src short"><a href="#v:map">map</a> :: (a -&gt; b) -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> b</li><li class="src short"><a href="#v:map-39-">map'</a> :: (a -&gt; b) -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> b</li><li class="src short"><a href="#v:traverse">traverse</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Applicative.html#t:Applicative">Applicative</a> f =&gt; (a -&gt; f b) -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a -&gt; f (<a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> b)</li><li class="src short"><a href="#v:filter">filter</a> :: (a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>) -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Array" class="def">Array</a> a <a href="src/Text-Trifecta-Util-Array.html#Array" class="link">Source</a></p><div class="subs instances"><p id="control.i:Array" class="caption collapser" onclick="toggleSection('i:Array')">Instances</p><div id="section.i:Array" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/deepseq-1.4.1.1/Control-DeepSeq.html#t:NFData">NFData</a> a =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/deepseq-1.4.1.1/Control-DeepSeq.html#t:NFData">NFData</a> (<a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a)</span> <a href="src/Text-Trifecta-Util-Array.html#line-147" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:MArray" class="def">MArray</a> s a <a href="src/Text-Trifecta-Util-Array.html#MArray" class="link">Source</a></p></div><h1 id="g:1">Creation</h1><div class="top"><p class="src"><a name="v:new" class="def">new</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad-ST.html#t:ST">ST</a> s (<a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s a) <a href="src/Text-Trifecta-Util-Array.html#new" class="link">Source</a></p><div class="doc"><p>Create a new mutable array of specified size, in the specified
 state thread, with each element containing the specified initial
 value.</p></div></div><div class="top"><p class="src"><a name="v:new_" class="def">new_</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad-ST.html#t:ST">ST</a> s (<a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s a) <a href="src/Text-Trifecta-Util-Array.html#new_" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:empty" class="def">empty</a> :: <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a <a href="src/Text-Trifecta-Util-Array.html#empty" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:singleton" class="def">singleton</a> :: a -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a <a href="src/Text-Trifecta-Util-Array.html#singleton" class="link">Source</a></p></div><h1 id="g:2">Basic interface</h1><div class="top"><p class="src"><a name="v:length" class="def">length</a> :: <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> <a href="src/Text-Trifecta-Util-Array.html#length" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:lengthM" class="def">lengthM</a> :: <a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> <a href="src/Text-Trifecta-Util-Array.html#lengthM" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:read" class="def">read</a> :: <a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad-ST.html#t:ST">ST</a> s a <a href="src/Text-Trifecta-Util-Array.html#read" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:write" class="def">write</a> :: <a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad-ST.html#t:ST">ST</a> s () <a href="src/Text-Trifecta-Util-Array.html#write" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:index" class="def">index</a> :: <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; a <a href="src/Text-Trifecta-Util-Array.html#index" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:index_" class="def">index_</a> :: <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad-ST.html#t:ST">ST</a> s a <a href="src/Text-Trifecta-Util-Array.html#index_" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:indexM_" class="def">indexM_</a> :: <a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad-ST.html#t:ST">ST</a> s a <a href="src/Text-Trifecta-Util-Array.html#indexM_" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:update" class="def">update</a> :: <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> e -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; e -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> e <a href="src/Text-Trifecta-Util-Array.html#update" class="link">Source</a></p><div class="doc"><p><em>O(n)</em> Update the element at the given position in this array.</p></div></div><div class="top"><p class="src"><a name="v:insert" class="def">insert</a> :: <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> e -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; e -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> e <a href="src/Text-Trifecta-Util-Array.html#insert" class="link">Source</a></p><div class="doc"><p><em>O(n)</em> Insert an element at the given position in this array,
 increasing its size by one.</p></div></div><div class="top"><p class="src"><a name="v:delete" class="def">delete</a> :: <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> e -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> e <a href="src/Text-Trifecta-Util-Array.html#delete" class="link">Source</a></p><div class="doc"><p><em>O(n)</em> Delete an element at the given position in this array,
 decreasing its size by one.</p></div></div><div class="top"><p class="src"><a name="v:unsafeFreeze" class="def">unsafeFreeze</a> :: <a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad-ST.html#t:ST">ST</a> s (<a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a) <a href="src/Text-Trifecta-Util-Array.html#unsafeFreeze" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:run" class="def">run</a> :: (<span class="keyword">forall</span> s. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad-ST.html#t:ST">ST</a> s (<a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s e)) -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> e <a href="src/Text-Trifecta-Util-Array.html#run" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:run2" class="def">run2</a> :: (<span class="keyword">forall</span> s. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad-ST.html#t:ST">ST</a> s (<a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s e, a)) -&gt; (<a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> e, a) <a href="src/Text-Trifecta-Util-Array.html#run2" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:copy" class="def">copy</a> :: <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> e -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s e -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad-ST.html#t:ST">ST</a> s () <a href="src/Text-Trifecta-Util-Array.html#copy" class="link">Source</a></p><div class="doc"><p>Unsafely copy the elements of an array. Array bounds are not checked.</p></div></div><div class="top"><p class="src"><a name="v:copyM" class="def">copyM</a> :: <a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s e -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s e -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad-ST.html#t:ST">ST</a> s () <a href="src/Text-Trifecta-Util-Array.html#copyM" class="link">Source</a></p><div class="doc"><p>Unsafely copy the elements of an array. Array bounds are not checked.</p></div></div><h1 id="g:3">Folds</h1><div class="top"><p class="src"><a name="v:foldl-39-" class="def">foldl'</a> :: (b -&gt; a -&gt; b) -&gt; b -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a -&gt; b <a href="src/Text-Trifecta-Util-Array.html#foldl%27" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:foldr" class="def">foldr</a> :: (a -&gt; b -&gt; b) -&gt; b -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a -&gt; b <a href="src/Text-Trifecta-Util-Array.html#foldr" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:thaw" class="def">thaw</a> :: <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> e -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad-ST.html#t:ST">ST</a> s (<a href="Text-Trifecta-Util-Array.html#t:MArray">MArray</a> s e) <a href="src/Text-Trifecta-Util-Array.html#thaw" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:map" class="def">map</a> :: (a -&gt; b) -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> b <a href="src/Text-Trifecta-Util-Array.html#map" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:map-39-" class="def">map'</a> :: (a -&gt; b) -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> b <a href="src/Text-Trifecta-Util-Array.html#map%27" class="link">Source</a></p><div class="doc"><p>Strict version of <code><a href="Text-Trifecta-Util-Array.html#v:map">map</a></code>.</p></div></div><div class="top"><p class="src"><a name="v:traverse" class="def">traverse</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Applicative.html#t:Applicative">Applicative</a> f =&gt; (a -&gt; f b) -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a -&gt; f (<a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> b) <a href="src/Text-Trifecta-Util-Array.html#traverse" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:filter" class="def">filter</a> :: (a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>) -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a -&gt; <a href="Text-Trifecta-Util-Array.html#t:Array">Array</a> a <a href="src/Text-Trifecta-Util-Array.html#filter" class="link">Source</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>