mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-17 08:06:43 -05:00
2 lines
No EOL
6.3 KiB
HTML
2 lines
No EOL
6.3 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>With_free_variables (ocaml.Flambda.With_free_variables)</title><link rel="stylesheet" href="../../../_odoc-theme/odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.2.1"/><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">ocaml</a> » <a href="../index.html">Flambda</a> » With_free_variables</nav><header class="odoc-preamble"><h1>Module <code><span>Flambda.With_free_variables</span></code></h1><p>A module for the manipulation of terms where the recomputation of free variable sets is to be kept to a minimum.</p></header><div class="odoc-content"><div class="odoc-spec"><div class="spec type anchored" id="type-t"><a href="#type-t" class="anchor"></a><code><span><span class="keyword">type</span> <span>'a t</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-of_defining_expr_of_let"><a href="#val-of_defining_expr_of_let" class="anchor"></a><code><span><span class="keyword">val</span> of_defining_expr_of_let : <span><a href="../index.html#type-let_expr">let_expr</a> <span class="arrow">-></span></span> <span><a href="../index.html#type-named">named</a> <a href="#type-t">t</a></span></span></code></div><div class="spec-doc"><p>O(1) time.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-of_body_of_let"><a href="#val-of_body_of_let" class="anchor"></a><code><span><span class="keyword">val</span> of_body_of_let : <span><a href="../index.html#type-let_expr">let_expr</a> <span class="arrow">-></span></span> <span><a href="../index.html#type-expr">expr</a> <a href="#type-t">t</a></span></span></code></div><div class="spec-doc"><p>O(1) time.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-of_expr"><a href="#val-of_expr" class="anchor"></a><code><span><span class="keyword">val</span> of_expr : <span><a href="../index.html#type-expr">expr</a> <span class="arrow">-></span></span> <span><a href="../index.html#type-expr">expr</a> <a href="#type-t">t</a></span></span></code></div><div class="spec-doc"><p>Takes the time required to calculate the free variables of the given term (proportional to the size of the term, except that the calculation for <code>Let</code> is O(1)).</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-of_named"><a href="#val-of_named" class="anchor"></a><code><span><span class="keyword">val</span> of_named : <span><a href="../index.html#type-named">named</a> <span class="arrow">-></span></span> <span><a href="../index.html#type-named">named</a> <a href="#type-t">t</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-create_let_reusing_defining_expr"><a href="#val-create_let_reusing_defining_expr" class="anchor"></a><code><span><span class="keyword">val</span> create_let_reusing_defining_expr : <span><a href="../../Variable/index.html#type-t">Variable.t</a> <span class="arrow">-></span></span> <span><span><a href="../index.html#type-named">named</a> <a href="#type-t">t</a></span> <span class="arrow">-></span></span> <span><a href="../index.html#type-expr">expr</a> <span class="arrow">-></span></span> <a href="../index.html#type-expr">expr</a></span></code></div><div class="spec-doc"><p>Takes the time required to calculate the free variables of the given <code>expr</code>.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-create_let_reusing_body"><a href="#val-create_let_reusing_body" class="anchor"></a><code><span><span class="keyword">val</span> create_let_reusing_body : <span><a href="../../Variable/index.html#type-t">Variable.t</a> <span class="arrow">-></span></span> <span><a href="../index.html#type-named">named</a> <span class="arrow">-></span></span> <span><span><a href="../index.html#type-expr">expr</a> <a href="#type-t">t</a></span> <span class="arrow">-></span></span> <a href="../index.html#type-expr">expr</a></span></code></div><div class="spec-doc"><p>Takes the time required to calculate the free variables of the given <code>named</code>.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-create_let_reusing_both"><a href="#val-create_let_reusing_both" class="anchor"></a><code><span><span class="keyword">val</span> create_let_reusing_both : <span><a href="../../Variable/index.html#type-t">Variable.t</a> <span class="arrow">-></span></span> <span><span><a href="../index.html#type-named">named</a> <a href="#type-t">t</a></span> <span class="arrow">-></span></span> <span><span><a href="../index.html#type-expr">expr</a> <a href="#type-t">t</a></span> <span class="arrow">-></span></span> <a href="../index.html#type-expr">expr</a></span></code></div><div class="spec-doc"><p>O(1) time.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-expr"><a href="#val-expr" class="anchor"></a><code><span><span class="keyword">val</span> expr : <span><span><a href="../index.html#type-expr">expr</a> <a href="#type-t">t</a></span> <span class="arrow">-></span></span> <span><a href="../index.html#type-named">named</a> <a href="#type-t">t</a></span></span></code></div><div class="spec-doc"><p>The equivalent of the <code>Expr</code> constructor.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-contents"><a href="#val-contents" class="anchor"></a><code><span><span class="keyword">val</span> contents : <span><span><span class="type-var">'a</span> <a href="#type-t">t</a></span> <span class="arrow">-></span></span> <span class="type-var">'a</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-free_variables"><a href="#val-free_variables" class="anchor"></a><code><span><span class="keyword">val</span> free_variables : <span><span><span class="type-var">_</span> <a href="#type-t">t</a></span> <span class="arrow">-></span></span> <a href="../../Variable/Set/index.html#type-t">Variable.Set.t</a></span></code></div><div class="spec-doc"><p>O(1) time.</p></div></div></div></body></html> |