<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Array_manipulation (baguette_sharp.Baguette_sharp.Array_manipulation)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.1.0"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> â€“ <a href="../../index.html">baguette_sharp</a> &#x00BB; <a href="../index.html">Baguette_sharp</a> &#x00BB; Array_manipulation</nav><header class="odoc-preamble"><h1>Module <code><span>Baguette_sharp.Array_manipulation</span></code></h1><p>The Array Manipulation Module of the B# STD</p></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value" id="val-two_argument_func" class="anchored"><a href="#val-two_argument_func" class="anchor"></a><code><span><span class="keyword">val</span> two_argument_func : 
  <span><span>( <span><span class="type-var">'a</span> <span class="arrow">&#45;&gt;</span></span> <span><span class="type-var">'a</span> <span class="arrow">&#45;&gt;</span></span> <a href="../Parser/index.html#type-parameters">Parser.parameters</a> )</span> <span class="arrow">&#45;&gt;</span></span>
  <span><span><span class="type-var">'a</span> list</span> <span class="arrow">&#45;&gt;</span></span>
  <a href="../Parser/index.html#type-parameters">Parser.parameters</a></span></code></div><div class="spec-doc"><p>A generic function to extract two parameters from the list and apply a function</p></div></div><div class="odoc-spec"><div class="spec value" id="val-create_list" class="anchored"><a href="#val-create_list" class="anchor"></a><code><span><span class="keyword">val</span> create_list : <span>int <span class="arrow">&#45;&gt;</span></span> <span><span class="type-var">'a</span> <span class="arrow">&#45;&gt;</span></span> <span><span><span class="type-var">'a</span> list</span> <span class="arrow">&#45;&gt;</span></span> <span><span class="type-var">'a</span> list</span></span></code></div><div class="spec-doc"><p>Creates a list containing n times the element default</p></div></div><div class="odoc-spec"><div class="spec value" id="val-proto_access" class="anchored"><a href="#val-proto_access" class="anchor"></a><code><span><span class="keyword">val</span> proto_access : <span><a href="../Parser/index.html#type-parameters">Parser.parameters</a> <span class="arrow">&#45;&gt;</span></span> <span><a href="../Parser/index.html#type-parameters">Parser.parameters</a> <span class="arrow">&#45;&gt;</span></span> <a href="../Parser/index.html#type-parameters">Parser.parameters</a></span></code></div><div class="spec-doc"><p>Takes an array and an integer and returns tbl.(n)</p></div></div><div class="odoc-spec"><div class="spec value" id="val-proto_replace" class="anchored"><a href="#val-proto_replace" class="anchor"></a><code><span><span class="keyword">val</span> proto_replace : 
  <span><a href="../Parser/index.html#type-parameters">Parser.parameters</a> <span class="arrow">&#45;&gt;</span></span>
  <span><a href="../Parser/index.html#type-parameters">Parser.parameters</a> <span class="arrow">&#45;&gt;</span></span>
  <span><a href="../Parser/index.html#type-parameters">Parser.parameters</a> <span class="arrow">&#45;&gt;</span></span>
  <a href="../Parser/index.html#type-parameters">Parser.parameters</a></span></code></div><div class="spec-doc"><p>Takes an array, an integer and an element and performs tbl.(n) &lt;- rp</p></div></div><div class="odoc-spec"><div class="spec value" id="val-proto_populate" class="anchored"><a href="#val-proto_populate" class="anchor"></a><code><span><span class="keyword">val</span> proto_populate : 
  <span><a href="../Parser/index.html#type-parameters">Parser.parameters</a> <span class="arrow">&#45;&gt;</span></span>
  <span><a href="../Parser/index.html#type-parameters">Parser.parameters</a> <span class="arrow">&#45;&gt;</span></span>
  <span><a href="../Parser/index.html#type-parameters">Parser.parameters</a> <span class="arrow">&#45;&gt;</span></span>
  <a href="../Parser/index.html#type-parameters">Parser.parameters</a></span></code></div><div class="spec-doc"><p>Populate the tbl with times default</p></div></div><div class="odoc-spec"><div class="spec value" id="val-proto_create_array" class="anchored"><a href="#val-proto_create_array" class="anchor"></a><code><span><span class="keyword">val</span> proto_create_array : 
  <span><a href="../Parser/index.html#type-parameters">Parser.parameters</a> <span class="arrow">&#45;&gt;</span></span>
  <span><a href="../Parser/index.html#type-parameters">Parser.parameters</a> <span class="arrow">&#45;&gt;</span></span>
  <a href="../Parser/index.html#type-parameters">Parser.parameters</a></span></code></div><div class="spec-doc"><p>Create an array of size n populated by default</p></div></div><div class="odoc-spec"><div class="spec value" id="val-proto_create_matrix" class="anchored"><a href="#val-proto_create_matrix" class="anchor"></a><code><span><span class="keyword">val</span> proto_create_matrix : 
  <span><a href="../Parser/index.html#type-parameters">Parser.parameters</a> <span class="arrow">&#45;&gt;</span></span>
  <span><a href="../Parser/index.html#type-parameters">Parser.parameters</a> <span class="arrow">&#45;&gt;</span></span>
  <span><a href="../Parser/index.html#type-parameters">Parser.parameters</a> <span class="arrow">&#45;&gt;</span></span>
  <a href="../Parser/index.html#type-parameters">Parser.parameters</a></span></code></div><div class="spec-doc"><p>Create a matrix of size n p populated by default</p></div></div><div class="odoc-spec"><div class="spec value" id="val-access" class="anchored"><a href="#val-access" class="anchor"></a><code><span><span class="keyword">val</span> access : <span><span><a href="../Parser/index.html#type-parameters">Parser.parameters</a> list</span> <span class="arrow">&#45;&gt;</span></span> <a href="../Parser/index.html#type-parameters">Parser.parameters</a></span></code></div><div class="spec-doc"><p>Creates the access function</p></div></div><div class="odoc-spec"><div class="spec value" id="val-create_array" class="anchored"><a href="#val-create_array" class="anchor"></a><code><span><span class="keyword">val</span> create_array : <span><span><a href="../Parser/index.html#type-parameters">Parser.parameters</a> list</span> <span class="arrow">&#45;&gt;</span></span> <a href="../Parser/index.html#type-parameters">Parser.parameters</a></span></code></div><div class="spec-doc"><p>Creates the create function</p></div></div><div class="odoc-spec"><div class="spec value" id="val-replace" class="anchored"><a href="#val-replace" class="anchor"></a><code><span><span class="keyword">val</span> replace : <span><span><a href="../Parser/index.html#type-parameters">Parser.parameters</a> list</span> <span class="arrow">&#45;&gt;</span></span> <a href="../Parser/index.html#type-parameters">Parser.parameters</a></span></code></div><div class="spec-doc"><p>Creates the replace function</p></div></div><div class="odoc-spec"><div class="spec value" id="val-populate" class="anchored"><a href="#val-populate" class="anchor"></a><code><span><span class="keyword">val</span> populate : <span><span><a href="../Parser/index.html#type-parameters">Parser.parameters</a> list</span> <span class="arrow">&#45;&gt;</span></span> <a href="../Parser/index.html#type-parameters">Parser.parameters</a></span></code></div><div class="spec-doc"><p>Creates the populate function</p></div></div><div class="odoc-spec"><div class="spec value" id="val-create_matrix" class="anchored"><a href="#val-create_matrix" class="anchor"></a><code><span><span class="keyword">val</span> create_matrix : <span><span><a href="../Parser/index.html#type-parameters">Parser.parameters</a> list</span> <span class="arrow">&#45;&gt;</span></span> <a href="../Parser/index.html#type-parameters">Parser.parameters</a></span></code></div><div class="spec-doc"><p>Create the create_matrix function</p></div></div><div class="odoc-spec"><div class="spec value" id="val-display_array" class="anchored"><a href="#val-display_array" class="anchor"></a><code><span><span class="keyword">val</span> display_array : <span><span><a href="../Parser/index.html#type-parameters">Parser.parameters</a> list</span> <span class="arrow">&#45;&gt;</span></span> <a href="../Parser/index.html#type-parameters">Parser.parameters</a></span></code></div><div class="spec-doc"><p>Transform an array into a string</p></div></div></div></body></html>