mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-11 05:25:28 +03:00
core: fix stray closing bracket (thanks @mkfifo)
This commit is contained in:
parent
97d1259687
commit
0071399134
@ -38,7 +38,6 @@
|
||||
(doc leak-array "Leak some memory. Useful for testing tools that detect leaks.")
|
||||
(register leak-array (Fn [a] ()) "Debug_leak_MINUS_array")
|
||||
|
||||
)
|
||||
)
|
||||
|
||||
;; HACK! This silences compiler errors about 'source-location' and 'source-path' being undefined.
|
||||
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
<html><head><meta charset="UTF-8"><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"><link href="carp_style.css" rel="stylesheet"></head><body><div class="content"><div class="logo"><a href="http://github.com/carp-lang/Carp"><img src="logo.png"></a><div class="title">core</div><div class="index"><ul><li><a href="Dynamic.html">Dynamic</a></li><li><a href="Int.html">Int</a></li><li><a href="Long.html">Long</a></li><li><a href="Bool.html">Bool</a></li><li><a href="Float.html">Float</a></li><li><a href="Double.html">Double</a></li><li><a href="Vector2.html">Vector2</a></li><li><a href="V2.html">V2</a></li><li><a href="Vector3.html">Vector3</a></li><li><a href="V3.html">V3</a></li><li><a href="VectorN.html">VectorN</a></li><li><a href="VN.html">VN</a></li><li><a href="Geometry.html">Geometry</a></li><li><a href="Statistics.html">Statistics</a></li><li><a href="String.html">String</a></li><li><a href="Char.html">Char</a></li><li><a href="Pattern.html">Pattern</a></li><li><a href="Array.html">Array</a></li><li><a href="IO.html">IO</a></li><li><a href="System.html">System</a></li><li><a href="Debug.html">Debug</a></li><li><a href="Test.html">Test</a></li><li><a href="Bench.html">Bench</a></li></ul></div></div><h1>Bench</h1><div class="binder"><a href="#bench" class="anchor"><h3 id="bench">bench</h3></a><div class="description">defn</div><p class="sig">(λ [(λ [] r12)] ())</p><p class="doc"></p></div><div class="binder"><a href="#get-samples" class="anchor"><h3 id="get-samples">get-samples</h3></a><div class="description">defn</div><p class="sig">(λ [(λ [] r18), Double] Summary)</p><p class="doc"></p></div><div class="binder"><a href="#get-unit" class="anchor"><h3 id="get-unit">get-unit</h3></a><div class="description">defn</div><p class="sig">(λ [Double] String)</p><p class="doc"></p></div><div class="binder"><a href="#min-one" class="anchor"><h3 id="min-one">min-one</h3></a><div class="description">defn</div><p class="sig">(λ [Double] Double)</p><p class="doc"></p></div><div class="binder"><a href="#min-runs" class="anchor"><h3 id="min-runs">min-runs</h3></a><div class="description">def</div><p class="sig">Int</p><p class="doc"></p></div><div class="binder"><a href="#ns-iter-inner" class="anchor"><h3 id="ns-iter-inner">ns-iter-inner</h3></a><div class="description">defn</div><p class="sig">(λ [(λ [] t13), Int] Double)</p><p class="doc"></p></div><div class="binder"><a href="#print" class="anchor"><h3 id="print">print</h3></a><div class="description">defn</div><p class="sig">(λ [&String, Double] ())</p><p class="doc"></p></div><div class="binder"><a href="#print-bench-results" class="anchor"><h3 id="print-bench-results">print-bench-results</h3></a><div class="description">defn</div><p class="sig">(λ [(Ref Summary), Double] ())</p><p class="doc"></p></div><div class="binder"><a href="#set-min-runs!" class="anchor"><h3 id="set-min-runs!">set-min-runs!</h3></a><div class="description">defn</div><p class="sig">(λ [Int] ())</p><p class="doc"></p></div></div></body></html>
|
||||
<html><head><meta charset="UTF-8"><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"><link href="carp_style.css" rel="stylesheet"></head><body><div class="content"><div class="logo"><a href="http://github.com/carp-lang/Carp"><img src="logo.png"></a><div class="title">core</div><div class="index"><ul><li><a href="Dynamic.html">Dynamic</a></li><li><a href="Int.html">Int</a></li><li><a href="Long.html">Long</a></li><li><a href="Bool.html">Bool</a></li><li><a href="Float.html">Float</a></li><li><a href="Double.html">Double</a></li><li><a href="Vector2.html">Vector2</a></li><li><a href="V2.html">V2</a></li><li><a href="Vector3.html">Vector3</a></li><li><a href="V3.html">V3</a></li><li><a href="VectorN.html">VectorN</a></li><li><a href="VN.html">VN</a></li><li><a href="Geometry.html">Geometry</a></li><li><a href="Statistics.html">Statistics</a></li><li><a href="String.html">String</a></li><li><a href="Char.html">Char</a></li><li><a href="Pattern.html">Pattern</a></li><li><a href="Array.html">Array</a></li><li><a href="IO.html">IO</a></li><li><a href="System.html">System</a></li><li><a href="Debug.html">Debug</a></li><li><a href="Test.html">Test</a></li><li><a href="Bench.html">Bench</a></li></ul></div></div><h1>Bench</h1><div class="binder"><a href="#bench" class="anchor"><h3 id="bench">bench</h3></a><div class="description">defn</div><p class="sig">(λ [(λ [] r12)] ())</p><p class="doc">Benchmark function f and print the results.</p></div><div class="binder"><a href="#set-min-runs!" class="anchor"><h3 id="set-min-runs!">set-min-runs!</h3></a><div class="description">defn</div><p class="sig">(λ [Int] ())</p><p class="doc">Set the minimum number of runs. If your functions takes a large amount of time, experimenting with this might make sense.</p></div></div></body></html>
|
@ -1 +1 @@
|
||||
<html><head><meta charset="UTF-8"><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"><link href="carp_style.css" rel="stylesheet"></head><body><div class="content"><div class="logo"><a href="http://github.com/carp-lang/Carp"><img src="logo.png"></a><div class="title">core</div><div class="index"><ul><li><a href="Dynamic.html">Dynamic</a></li><li><a href="Int.html">Int</a></li><li><a href="Long.html">Long</a></li><li><a href="Bool.html">Bool</a></li><li><a href="Float.html">Float</a></li><li><a href="Double.html">Double</a></li><li><a href="Vector2.html">Vector2</a></li><li><a href="V2.html">V2</a></li><li><a href="Vector3.html">Vector3</a></li><li><a href="V3.html">V3</a></li><li><a href="VectorN.html">VectorN</a></li><li><a href="VN.html">VN</a></li><li><a href="Geometry.html">Geometry</a></li><li><a href="Statistics.html">Statistics</a></li><li><a href="String.html">String</a></li><li><a href="Char.html">Char</a></li><li><a href="Pattern.html">Pattern</a></li><li><a href="Array.html">Array</a></li><li><a href="IO.html">IO</a></li><li><a href="System.html">System</a></li><li><a href="Debug.html">Debug</a></li><li><a href="Test.html">Test</a></li><li><a href="Bench.html">Bench</a></li></ul></div></div><h1>Char</h1><div class="binder"><a href="#/=" class="anchor"><h3 id="/=">/=</h3></a><div class="description">defn</div><p class="sig">(λ [Char, Char] Bool)</p><p class="doc"></p></div><div class="binder"><a href="#=" class="anchor"><h3 id="=">=</h3></a><div class="description">external</div><p class="sig">(λ [Char, Char] Bool)</p><p class="doc"></p></div><div class="binder"><a href="#copy" class="anchor"><h3 id="copy">copy</h3></a><div class="description">external</div><p class="sig">(λ [&Char] Char)</p><p class="doc"></p></div><div class="binder"><a href="#format" class="anchor"><h3 id="format">format</h3></a><div class="description">external</div><p class="sig">(λ [&String, Char] String)</p><p class="doc"></p></div><div class="binder"><a href="#from-int" class="anchor"><h3 id="from-int">from-int</h3></a><div class="description">external</div><p class="sig">(λ [Int] Char)</p><p class="doc"></p></div><div class="binder"><a href="#meaning" class="anchor"><h3 id="meaning">meaning</h3></a><div class="description">defn</div><p class="sig">(λ [&Char] Int)</p><p class="doc"></p></div><div class="binder"><a href="#prn" class="anchor"><h3 id="prn">prn</h3></a><div class="description">defn</div><p class="sig">(λ [Char] String)</p><p class="doc"></p></div><div class="binder"><a href="#random" class="anchor"><h3 id="random">random</h3></a><div class="description">defn</div><p class="sig">(λ [] Char)</p><p class="doc"></p></div><div class="binder"><a href="#random-between" class="anchor"><h3 id="random-between">random-between</h3></a><div class="description">defn</div><p class="sig">(λ [Char, Char] Char)</p><p class="doc"></p></div><div class="binder"><a href="#str" class="anchor"><h3 id="str">str</h3></a><div class="description">external</div><p class="sig">(λ [Char] String)</p><p class="doc"></p></div><div class="binder"><a href="#to-int" class="anchor"><h3 id="to-int">to-int</h3></a><div class="description">external</div><p class="sig">(λ [Char] Int)</p><p class="doc"></p></div></div></body></html>
|
||||
<html><head><meta charset="UTF-8"><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"><link href="carp_style.css" rel="stylesheet"></head><body><div class="content"><div class="logo"><a href="http://github.com/carp-lang/Carp"><img src="logo.png"></a><div class="title">core</div><div class="index"><ul><li><a href="Dynamic.html">Dynamic</a></li><li><a href="Int.html">Int</a></li><li><a href="Long.html">Long</a></li><li><a href="Bool.html">Bool</a></li><li><a href="Float.html">Float</a></li><li><a href="Double.html">Double</a></li><li><a href="Vector2.html">Vector2</a></li><li><a href="V2.html">V2</a></li><li><a href="Vector3.html">Vector3</a></li><li><a href="V3.html">V3</a></li><li><a href="VectorN.html">VectorN</a></li><li><a href="VN.html">VN</a></li><li><a href="Geometry.html">Geometry</a></li><li><a href="Statistics.html">Statistics</a></li><li><a href="String.html">String</a></li><li><a href="Char.html">Char</a></li><li><a href="Pattern.html">Pattern</a></li><li><a href="Array.html">Array</a></li><li><a href="IO.html">IO</a></li><li><a href="System.html">System</a></li><li><a href="Debug.html">Debug</a></li><li><a href="Test.html">Test</a></li><li><a href="Bench.html">Bench</a></li></ul></div></div><h1>Char</h1><div class="binder"><a href="#/=" class="anchor"><h3 id="/=">/=</h3></a><div class="description">defn</div><p class="sig">(λ [Char, Char] Bool)</p><p class="doc"></p></div><div class="binder"><a href="#=" class="anchor"><h3 id="=">=</h3></a><div class="description">external</div><p class="sig">(λ [Char, Char] Bool)</p><p class="doc"></p></div><div class="binder"><a href="#copy" class="anchor"><h3 id="copy">copy</h3></a><div class="description">external</div><p class="sig">(λ [&Char] Char)</p><p class="doc"></p></div><div class="binder"><a href="#format" class="anchor"><h3 id="format">format</h3></a><div class="description">external</div><p class="sig">(λ [&String, Char] String)</p><p class="doc"></p></div><div class="binder"><a href="#from-int" class="anchor"><h3 id="from-int">from-int</h3></a><div class="description">external</div><p class="sig">(λ [Int] Char)</p><p class="doc"></p></div><div class="binder"><a href="#meaning" class="anchor"><h3 id="meaning">meaning</h3></a><div class="description">defn</div><p class="sig">(λ [&Char] Int)</p><p class="doc">Convert a numerical char into the appropriate number.</p></div><div class="binder"><a href="#prn" class="anchor"><h3 id="prn">prn</h3></a><div class="description">defn</div><p class="sig">(λ [Char] String)</p><p class="doc"></p></div><div class="binder"><a href="#random" class="anchor"><h3 id="random">random</h3></a><div class="description">defn</div><p class="sig">(λ [] Char)</p><p class="doc"></p></div><div class="binder"><a href="#random-between" class="anchor"><h3 id="random-between">random-between</h3></a><div class="description">defn</div><p class="sig">(λ [Char, Char] Char)</p><p class="doc"></p></div><div class="binder"><a href="#str" class="anchor"><h3 id="str">str</h3></a><div class="description">external</div><p class="sig">(λ [Char] String)</p><p class="doc"></p></div><div class="binder"><a href="#to-int" class="anchor"><h3 id="to-int">to-int</h3></a><div class="description">external</div><p class="sig">(λ [Char] Int)</p><p class="doc"></p></div></div></body></html>
|
@ -1 +1 @@
|
||||
<html><head><meta charset="UTF-8"><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"><link href="carp_style.css" rel="stylesheet"></head><body><div class="content"><div class="logo"><a href="http://github.com/carp-lang/Carp"><img src="logo.png"></a><div class="title">core</div><div class="index"><ul><li><a href="Dynamic.html">Dynamic</a></li><li><a href="Int.html">Int</a></li><li><a href="Long.html">Long</a></li><li><a href="Bool.html">Bool</a></li><li><a href="Float.html">Float</a></li><li><a href="Double.html">Double</a></li><li><a href="Vector2.html">Vector2</a></li><li><a href="V2.html">V2</a></li><li><a href="Vector3.html">Vector3</a></li><li><a href="V3.html">V3</a></li><li><a href="VectorN.html">VectorN</a></li><li><a href="VN.html">VN</a></li><li><a href="Geometry.html">Geometry</a></li><li><a href="Statistics.html">Statistics</a></li><li><a href="String.html">String</a></li><li><a href="Char.html">Char</a></li><li><a href="Pattern.html">Pattern</a></li><li><a href="Array.html">Array</a></li><li><a href="IO.html">IO</a></li><li><a href="System.html">System</a></li><li><a href="Debug.html">Debug</a></li><li><a href="Test.html">Test</a></li><li><a href="Bench.html">Bench</a></li></ul></div></div><h1>Debug</h1><div class="binder"><a href="#assert-balanced" class="anchor"><h3 id="assert-balanced">assert-balanced</h3></a><div class="description">macro</div><p class="sig">Macro</p><p class="doc"></p></div><div class="binder"><a href="#leak-array" class="anchor"><h3 id="leak-array">leak-array</h3></a><div class="description">external</div><p class="sig">(λ [a] ())</p><p class="doc"></p></div><div class="binder"><a href="#log-memory-balance!" class="anchor"><h3 id="log-memory-balance!">log-memory-balance!</h3></a><div class="description">external</div><p class="sig">(λ [Bool] ())</p><p class="doc"></p></div><div class="binder"><a href="#memory-balance" class="anchor"><h3 id="memory-balance">memory-balance</h3></a><div class="description">external</div><p class="sig">(λ [] Long)</p><p class="doc"></p></div><div class="binder"><a href="#memory-logged" class="anchor"><h3 id="memory-logged">memory-logged</h3></a><div class="description">macro</div><p class="sig">Macro</p><p class="doc"></p></div><div class="binder"><a href="#reset-memory-balance!" class="anchor"><h3 id="reset-memory-balance!">reset-memory-balance!</h3></a><div class="description">external</div><p class="sig">(λ [] ())</p><p class="doc"></p></div><div class="binder"><a href="#sanitize-addresses" class="anchor"><h3 id="sanitize-addresses">sanitize-addresses</h3></a><div class="description">dynamic</div><p class="sig">Dynamic</p><p class="doc"></p></div><div class="binder"><a href="#trace" class="anchor"><h3 id="trace">trace</h3></a><div class="description">defn</div><p class="sig">(λ [t2] t2)</p><p class="doc"></p></div></div></body></html>
|
||||
<html><head><meta charset="UTF-8"><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"><link href="carp_style.css" rel="stylesheet"></head><body><div class="content"><div class="logo"><a href="http://github.com/carp-lang/Carp"><img src="logo.png"></a><div class="title">core</div><div class="index"><ul><li><a href="Dynamic.html">Dynamic</a></li><li><a href="Int.html">Int</a></li><li><a href="Long.html">Long</a></li><li><a href="Bool.html">Bool</a></li><li><a href="Float.html">Float</a></li><li><a href="Double.html">Double</a></li><li><a href="Vector2.html">Vector2</a></li><li><a href="V2.html">V2</a></li><li><a href="Vector3.html">Vector3</a></li><li><a href="V3.html">V3</a></li><li><a href="VectorN.html">VectorN</a></li><li><a href="VN.html">VN</a></li><li><a href="Geometry.html">Geometry</a></li><li><a href="Statistics.html">Statistics</a></li><li><a href="String.html">String</a></li><li><a href="Char.html">Char</a></li><li><a href="Pattern.html">Pattern</a></li><li><a href="Array.html">Array</a></li><li><a href="IO.html">IO</a></li><li><a href="System.html">System</a></li><li><a href="Debug.html">Debug</a></li><li><a href="Test.html">Test</a></li><li><a href="Bench.html">Bench</a></li></ul></div></div><h1>Debug</h1><div class="binder"><a href="#assert-balanced" class="anchor"><h3 id="assert-balanced">assert-balanced</h3></a><div class="description">macro</div><p class="sig">Macro</p><p class="doc">Raises an error if the memory balance (numberr of alloc:s - number of free:s) isn't 0. Requires compiling with --log-memory.</p></div><div class="binder"><a href="#leak-array" class="anchor"><h3 id="leak-array">leak-array</h3></a><div class="description">external</div><p class="sig">(λ [a] ())</p><p class="doc">Leak some memory. Useful for testing tools that detect leaks.</p></div><div class="binder"><a href="#log-memory-balance!" class="anchor"><h3 id="log-memory-balance!">log-memory-balance!</h3></a><div class="description">external</div><p class="sig">(λ [Bool] ())</p><p class="doc"></p></div><div class="binder"><a href="#memory-balance" class="anchor"><h3 id="memory-balance">memory-balance</h3></a><div class="description">external</div><p class="sig">(λ [] Long)</p><p class="doc"></p></div><div class="binder"><a href="#memory-logged" class="anchor"><h3 id="memory-logged">memory-logged</h3></a><div class="description">macro</div><p class="sig">Macro</p><p class="doc">Log all calls to memory allocation within te form. Requires compiling with --log-memory.</p></div><div class="binder"><a href="#reset-memory-balance!" class="anchor"><h3 id="reset-memory-balance!">reset-memory-balance!</h3></a><div class="description">external</div><p class="sig">(λ [] ())</p><p class="doc"></p></div><div class="binder"><a href="#sanitize-addresses" class="anchor"><h3 id="sanitize-addresses">sanitize-addresses</h3></a><div class="description">dynamic</div><p class="sig">Dynamic</p><p class="doc">Instruct the compiler to sanitize addresses.</p></div><div class="binder"><a href="#trace" class="anchor"><h3 id="trace">trace</h3></a><div class="description">defn</div><p class="sig">(λ [t2] t2)</p><p class="doc">Print the value of an expression to stdout, then return its value.</p></div></div></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
<html><head><meta charset="UTF-8"><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"><link href="carp_style.css" rel="stylesheet"></head><body><div class="content"><div class="logo"><a href="http://github.com/carp-lang/Carp"><img src="logo.png"></a><div class="title">core</div><div class="index"><ul><li><a href="Dynamic.html">Dynamic</a></li><li><a href="Int.html">Int</a></li><li><a href="Long.html">Long</a></li><li><a href="Bool.html">Bool</a></li><li><a href="Float.html">Float</a></li><li><a href="Double.html">Double</a></li><li><a href="Vector2.html">Vector2</a></li><li><a href="V2.html">V2</a></li><li><a href="Vector3.html">Vector3</a></li><li><a href="V3.html">V3</a></li><li><a href="VectorN.html">VectorN</a></li><li><a href="VN.html">VN</a></li><li><a href="Geometry.html">Geometry</a></li><li><a href="Statistics.html">Statistics</a></li><li><a href="String.html">String</a></li><li><a href="Char.html">Char</a></li><li><a href="Pattern.html">Pattern</a></li><li><a href="Array.html">Array</a></li><li><a href="IO.html">IO</a></li><li><a href="System.html">System</a></li><li><a href="Debug.html">Debug</a></li><li><a href="Test.html">Test</a></li><li><a href="Bench.html">Bench</a></li></ul></div></div><h1>Geometry</h1><div class="binder"><a href="#degree-to-radians" class="anchor"><h3 id="degree-to-radians">degree-to-radians</h3></a><div class="description">defn</div><p class="sig">(λ [Double] Double)</p><p class="doc"></p></div><div class="binder"><a href="#radians-to-degree" class="anchor"><h3 id="radians-to-degree">radians-to-degree</h3></a><div class="description">defn</div><p class="sig">(λ [Double] Double)</p><p class="doc"></p></div></div></body></html>
|
||||
<html><head><meta charset="UTF-8"><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"><link href="carp_style.css" rel="stylesheet"></head><body><div class="content"><div class="logo"><a href="http://github.com/carp-lang/Carp"><img src="logo.png"></a><div class="title">core</div><div class="index"><ul><li><a href="Dynamic.html">Dynamic</a></li><li><a href="Int.html">Int</a></li><li><a href="Long.html">Long</a></li><li><a href="Bool.html">Bool</a></li><li><a href="Float.html">Float</a></li><li><a href="Double.html">Double</a></li><li><a href="Vector2.html">Vector2</a></li><li><a href="V2.html">V2</a></li><li><a href="Vector3.html">Vector3</a></li><li><a href="V3.html">V3</a></li><li><a href="VectorN.html">VectorN</a></li><li><a href="VN.html">VN</a></li><li><a href="Geometry.html">Geometry</a></li><li><a href="Statistics.html">Statistics</a></li><li><a href="String.html">String</a></li><li><a href="Char.html">Char</a></li><li><a href="Pattern.html">Pattern</a></li><li><a href="Array.html">Array</a></li><li><a href="IO.html">IO</a></li><li><a href="System.html">System</a></li><li><a href="Debug.html">Debug</a></li><li><a href="Test.html">Test</a></li><li><a href="Bench.html">Bench</a></li></ul></div></div><h1>Geometry</h1><div class="binder"><a href="#degree-to-radians" class="anchor"><h3 id="degree-to-radians">degree-to-radians</h3></a><div class="description">defn</div><p class="sig">(λ [Double] Double)</p><p class="doc">Converts degrees expressed as a double into radians.</p></div><div class="binder"><a href="#radians-to-degree" class="anchor"><h3 id="radians-to-degree">radians-to-degree</h3></a><div class="description">defn</div><p class="sig">(λ [Double] Double)</p><p class="doc">Converts radians expressed as a double into degree.</p></div></div></body></html>
|
@ -1 +1 @@
|
||||
<html><head><meta charset="UTF-8"><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"><link href="carp_style.css" rel="stylesheet"></head><body><div class="content"><div class="logo"><a href="http://github.com/carp-lang/Carp"><img src="logo.png"></a><div class="title">core</div><div class="index"><ul><li><a href="Dynamic.html">Dynamic</a></li><li><a href="Int.html">Int</a></li><li><a href="Long.html">Long</a></li><li><a href="Bool.html">Bool</a></li><li><a href="Float.html">Float</a></li><li><a href="Double.html">Double</a></li><li><a href="Vector2.html">Vector2</a></li><li><a href="V2.html">V2</a></li><li><a href="Vector3.html">Vector3</a></li><li><a href="V3.html">V3</a></li><li><a href="VectorN.html">VectorN</a></li><li><a href="VN.html">VN</a></li><li><a href="Geometry.html">Geometry</a></li><li><a href="Statistics.html">Statistics</a></li><li><a href="String.html">String</a></li><li><a href="Char.html">Char</a></li><li><a href="Pattern.html">Pattern</a></li><li><a href="Array.html">Array</a></li><li><a href="IO.html">IO</a></li><li><a href="System.html">System</a></li><li><a href="Debug.html">Debug</a></li><li><a href="Test.html">Test</a></li><li><a href="Bench.html">Bench</a></li></ul></div></div><h1>IO</h1><div class="binder"><a href="#EOF" class="anchor"><h3 id="EOF">EOF</h3></a><div class="description">external</div><p class="sig">Char</p><p class="doc"></p></div><div class="binder"><a href="#color" class="anchor"><h3 id="color">color</h3></a><div class="description">defn</div><p class="sig">(λ [&String] ())</p><p class="doc"></p></div><div class="binder"><a href="#color-name-to-ansi" class="anchor"><h3 id="color-name-to-ansi">color-name-to-ansi</h3></a><div class="description">defn</div><p class="sig">(λ [&String] String)</p><p class="doc"></p></div><div class="binder"><a href="#color-table" class="anchor"><h3 id="color-table">color-table</h3></a><div class="description">def</div><p class="sig">(Array (Array String))</p><p class="doc"></p></div><div class="binder"><a href="#exit" class="anchor"><h3 id="exit">exit</h3></a><div class="description">external</div><p class="sig">(λ [Int] a)</p><p class="doc"></p></div><div class="binder"><a href="#fclose" class="anchor"><h3 id="fclose">fclose</h3></a><div class="description">external</div><p class="sig">(λ [(Ptr FILE)] ())</p><p class="doc"></p></div><div class="binder"><a href="#fgetc" class="anchor"><h3 id="fgetc">fgetc</h3></a><div class="description">external</div><p class="sig">(λ [(Ptr FILE)] Char)</p><p class="doc"></p></div><div class="binder"><a href="#fopen" class="anchor"><h3 id="fopen">fopen</h3></a><div class="description">external</div><p class="sig">(λ [&String, &String] (Ptr FILE))</p><p class="doc"></p></div><div class="binder"><a href="#fwrite" class="anchor"><h3 id="fwrite">fwrite</h3></a><div class="description">external</div><p class="sig">(λ [a, Int, Int, (Ptr FILE)] ())</p><p class="doc"></p></div><div class="binder"><a href="#get-char" class="anchor"><h3 id="get-char">get-char</h3></a><div class="description">external</div><p class="sig">(λ [] Char)</p><p class="doc"></p></div><div class="binder"><a href="#get-line" class="anchor"><h3 id="get-line">get-line</h3></a><div class="description">external</div><p class="sig">(λ [] String)</p><p class="doc"></p></div><div class="binder"><a href="#len-color-table" class="anchor"><h3 id="len-color-table">len-color-table</h3></a><div class="description">def</div><p class="sig">Int</p><p class="doc"></p></div><div class="binder"><a href="#print" class="anchor"><h3 id="print">print</h3></a><div class="description">external</div><p class="sig">(λ [&String] ())</p><p class="doc"></p></div><div class="binder"><a href="#println" class="anchor"><h3 id="println">println</h3></a><div class="description">external</div><p class="sig">(λ [&String] ())</p><p class="doc"></p></div><div class="binder"><a href="#read->EOF" class="anchor"><h3 id="read->EOF">read->EOF</h3></a><div class="description">defn</div><p class="sig">(λ [&String] String)</p><p class="doc"></p></div><div class="binder"><a href="#read-file" class="anchor"><h3 id="read-file">read-file</h3></a><div class="description">external</div><p class="sig">(λ [&String] String)</p><p class="doc"></p></div></div></body></html>
|
||||
<html><head><meta charset="UTF-8"><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"><link href="carp_style.css" rel="stylesheet"></head><body><div class="content"><div class="logo"><a href="http://github.com/carp-lang/Carp"><img src="logo.png"></a><div class="title">core</div><div class="index"><ul><li><a href="Dynamic.html">Dynamic</a></li><li><a href="Int.html">Int</a></li><li><a href="Long.html">Long</a></li><li><a href="Bool.html">Bool</a></li><li><a href="Float.html">Float</a></li><li><a href="Double.html">Double</a></li><li><a href="Vector2.html">Vector2</a></li><li><a href="V2.html">V2</a></li><li><a href="Vector3.html">Vector3</a></li><li><a href="V3.html">V3</a></li><li><a href="VectorN.html">VectorN</a></li><li><a href="VN.html">VN</a></li><li><a href="Geometry.html">Geometry</a></li><li><a href="Statistics.html">Statistics</a></li><li><a href="String.html">String</a></li><li><a href="Char.html">Char</a></li><li><a href="Pattern.html">Pattern</a></li><li><a href="Array.html">Array</a></li><li><a href="IO.html">IO</a></li><li><a href="System.html">System</a></li><li><a href="Debug.html">Debug</a></li><li><a href="Test.html">Test</a></li><li><a href="Bench.html">Bench</a></li></ul></div></div><h1>IO</h1><div class="binder"><a href="#EOF" class="anchor"><h3 id="EOF">EOF</h3></a><div class="description">external</div><p class="sig">Char</p><p class="doc">the End-Of-File character as a literal.</p></div><div class="binder"><a href="#color" class="anchor"><h3 id="color">color</h3></a><div class="description">defn</div><p class="sig">(λ [&String] ())</p><p class="doc"></p></div><div class="binder"><a href="#color-name-to-ansi" class="anchor"><h3 id="color-name-to-ansi">color-name-to-ansi</h3></a><div class="description">defn</div><p class="sig">(λ [&String] String)</p><p class="doc"></p></div><div class="binder"><a href="#color-table" class="anchor"><h3 id="color-table">color-table</h3></a><div class="description">def</div><p class="sig">(Array (Array String))</p><p class="doc"></p></div><div class="binder"><a href="#exit" class="anchor"><h3 id="exit">exit</h3></a><div class="description">external</div><p class="sig">(λ [Int] a)</p><p class="doc">exit the current program with a return code.</p></div><div class="binder"><a href="#fclose" class="anchor"><h3 id="fclose">fclose</h3></a><div class="description">external</div><p class="sig">(λ [(Ptr FILE)] ())</p><p class="doc">closes a file pointer.</p></div><div class="binder"><a href="#fgetc" class="anchor"><h3 id="fgetc">fgetc</h3></a><div class="description">external</div><p class="sig">(λ [(Ptr FILE)] Char)</p><p class="doc">gets a character from a file pointer.</p></div><div class="binder"><a href="#fopen" class="anchor"><h3 id="fopen">fopen</h3></a><div class="description">external</div><p class="sig">(λ [&String, &String] (Ptr FILE))</p><p class="doc">opens a file by name using a mode (one or multiple of [r]ead, [w]rite, and [a]ppend), returns a file pointer.</p></div><div class="binder"><a href="#fwrite" class="anchor"><h3 id="fwrite">fwrite</h3></a><div class="description">external</div><p class="sig">(λ [a, Int, Int, (Ptr FILE)] ())</p><p class="doc">writes to a file pointer.</p></div><div class="binder"><a href="#get-char" class="anchor"><h3 id="get-char">get-char</h3></a><div class="description">external</div><p class="sig">(λ [] Char)</p><p class="doc">gets a character from stdin.</p></div><div class="binder"><a href="#get-line" class="anchor"><h3 id="get-line">get-line</h3></a><div class="description">external</div><p class="sig">(λ [] String)</p><p class="doc">gets a line from stdin.</p></div><div class="binder"><a href="#len-color-table" class="anchor"><h3 id="len-color-table">len-color-table</h3></a><div class="description">def</div><p class="sig">Int</p><p class="doc"></p></div><div class="binder"><a href="#print" class="anchor"><h3 id="print">print</h3></a><div class="description">external</div><p class="sig">(λ [&String] ())</p><p class="doc">prints a string ref to stdout, does not append a newline.</p></div><div class="binder"><a href="#println" class="anchor"><h3 id="println">println</h3></a><div class="description">external</div><p class="sig">(λ [&String] ())</p><p class="doc">prints a string ref to stdout, appends a newline.</p></div><div class="binder"><a href="#read->EOF" class="anchor"><h3 id="read->EOF">read->EOF</h3></a><div class="description">defn</div><p class="sig">(λ [&String] String)</p><p class="doc">reads a file given by name until the End-Of-File character is reached.</p></div><div class="binder"><a href="#read-file" class="anchor"><h3 id="read-file">read-file</h3></a><div class="description">external</div><p class="sig">(λ [&String] String)</p><p class="doc">returns the contents of a file passed as argument as a string.</p></div></div></body></html>
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
<html><head><meta charset="UTF-8"><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"><link href="carp_style.css" rel="stylesheet"></head><body><div class="content"><div class="logo"><a href="http://github.com/carp-lang/Carp"><img src="logo.png"></a><div class="title">core</div><div class="index"><ul><li><a href="Dynamic.html">Dynamic</a></li><li><a href="Int.html">Int</a></li><li><a href="Long.html">Long</a></li><li><a href="Bool.html">Bool</a></li><li><a href="Float.html">Float</a></li><li><a href="Double.html">Double</a></li><li><a href="Vector2.html">Vector2</a></li><li><a href="V2.html">V2</a></li><li><a href="Vector3.html">Vector3</a></li><li><a href="V3.html">V3</a></li><li><a href="VectorN.html">VectorN</a></li><li><a href="VN.html">VN</a></li><li><a href="Geometry.html">Geometry</a></li><li><a href="Statistics.html">Statistics</a></li><li><a href="String.html">String</a></li><li><a href="Char.html">Char</a></li><li><a href="Pattern.html">Pattern</a></li><li><a href="Array.html">Array</a></li><li><a href="IO.html">IO</a></li><li><a href="System.html">System</a></li><li><a href="Debug.html">Debug</a></li><li><a href="Test.html">Test</a></li><li><a href="Bench.html">Bench</a></li></ul></div></div><h1>Pattern</h1><div class="binder"><a href="#=" class="anchor"><h3 id="=">=</h3></a><div class="description">external</div><p class="sig">(λ [&Pattern, &Pattern] Bool)</p><p class="doc"></p></div><div class="binder"><a href="#copy" class="anchor"><h3 id="copy">copy</h3></a><div class="description">external</div><p class="sig">(λ [&Pattern] Pattern)</p><p class="doc"></p></div><div class="binder"><a href="#delete" class="anchor"><h3 id="delete">delete</h3></a><div class="description">external</div><p class="sig">(λ [Pattern] ())</p><p class="doc"></p></div><div class="binder"><a href="#find" class="anchor"><h3 id="find">find</h3></a><div class="description">external</div><p class="sig">(λ [&Pattern, &String] Int)</p><p class="doc"></p></div><div class="binder"><a href="#from-chars" class="anchor"><h3 id="from-chars">from-chars</h3></a><div class="description">defn</div><p class="sig">(λ [(Ref (Array Char))] Pattern)</p><p class="doc"></p></div><div class="binder"><a href="#global-match" class="anchor"><h3 id="global-match">global-match</h3></a><div class="description">external</div><p class="sig">(λ [&Pattern, &String] (Array (Array String)))</p><p class="doc"></p></div><div class="binder"><a href="#init" class="anchor"><h3 id="init">init</h3></a><div class="description">external</div><p class="sig">(λ [&String] Pattern)</p><p class="doc"></p></div><div class="binder"><a href="#match" class="anchor"><h3 id="match">match</h3></a><div class="description">external</div><p class="sig">(λ [&Pattern, &String] (Array String))</p><p class="doc"></p></div><div class="binder"><a href="#match-str" class="anchor"><h3 id="match-str">match-str</h3></a><div class="description">external</div><p class="sig">(λ [&Pattern, &String] String)</p><p class="doc"></p></div><div class="binder"><a href="#matches?" class="anchor"><h3 id="matches?">matches?</h3></a><div class="description">defn</div><p class="sig">(λ [&Pattern, &String] Bool)</p><p class="doc"></p></div><div class="binder"><a href="#prn" class="anchor"><h3 id="prn">prn</h3></a><div class="description">external</div><p class="sig">(λ [&Pattern] String)</p><p class="doc"></p></div><div class="binder"><a href="#str" class="anchor"><h3 id="str">str</h3></a><div class="description">external</div><p class="sig">(λ [&Pattern] String)</p><p class="doc"></p></div><div class="binder"><a href="#substitute" class="anchor"><h3 id="substitute">substitute</h3></a><div class="description">external</div><p class="sig">(λ [&Pattern, &String, &String, Int] String)</p><p class="doc"></p></div></div></body></html>
|
||||
<html><head><meta charset="UTF-8"><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"><link href="carp_style.css" rel="stylesheet"></head><body><div class="content"><div class="logo"><a href="http://github.com/carp-lang/Carp"><img src="logo.png"></a><div class="title">core</div><div class="index"><ul><li><a href="Dynamic.html">Dynamic</a></li><li><a href="Int.html">Int</a></li><li><a href="Long.html">Long</a></li><li><a href="Bool.html">Bool</a></li><li><a href="Float.html">Float</a></li><li><a href="Double.html">Double</a></li><li><a href="Vector2.html">Vector2</a></li><li><a href="V2.html">V2</a></li><li><a href="Vector3.html">Vector3</a></li><li><a href="V3.html">V3</a></li><li><a href="VectorN.html">VectorN</a></li><li><a href="VN.html">VN</a></li><li><a href="Geometry.html">Geometry</a></li><li><a href="Statistics.html">Statistics</a></li><li><a href="String.html">String</a></li><li><a href="Char.html">Char</a></li><li><a href="Pattern.html">Pattern</a></li><li><a href="Array.html">Array</a></li><li><a href="IO.html">IO</a></li><li><a href="System.html">System</a></li><li><a href="Debug.html">Debug</a></li><li><a href="Test.html">Test</a></li><li><a href="Bench.html">Bench</a></li></ul></div></div><h1>Pattern</h1><div class="binder"><a href="#=" class="anchor"><h3 id="=">=</h3></a><div class="description">external</div><p class="sig">(λ [&Pattern, &Pattern] Bool)</p><p class="doc"></p></div><div class="binder"><a href="#copy" class="anchor"><h3 id="copy">copy</h3></a><div class="description">external</div><p class="sig">(λ [&Pattern] Pattern)</p><p class="doc"></p></div><div class="binder"><a href="#delete" class="anchor"><h3 id="delete">delete</h3></a><div class="description">external</div><p class="sig">(λ [Pattern] ())</p><p class="doc"></p></div><div class="binder"><a href="#find" class="anchor"><h3 id="find">find</h3></a><div class="description">external</div><p class="sig">(λ [&Pattern, &String] Int)</p><p class="doc">Finds the index of a pattern in a string. Returns -1 otherwise.</p></div><div class="binder"><a href="#from-chars" class="anchor"><h3 id="from-chars">from-chars</h3></a><div class="description">defn</div><p class="sig">(λ [(Ref (Array Char))] Pattern)</p><p class="doc">Creates a pattern that matches a group of characters from a list of those characters.</p></div><div class="binder"><a href="#global-match" class="anchor"><h3 id="global-match">global-match</h3></a><div class="description">external</div><p class="sig">(λ [&Pattern, &String] (Array (Array String)))</p><p class="doc">Finds all matches of a pattern in a string as a nested array. Returns [] otherwise.</p></div><div class="binder"><a href="#init" class="anchor"><h3 id="init">init</h3></a><div class="description">external</div><p class="sig">(λ [&String] Pattern)</p><p class="doc"></p></div><div class="binder"><a href="#match" class="anchor"><h3 id="match">match</h3></a><div class="description">external</div><p class="sig">(λ [&Pattern, &String] (Array String))</p><p class="doc">Finds the match groups of the first match of a pattern in a string. Returns [] otherwise.</p></div><div class="binder"><a href="#match-str" class="anchor"><h3 id="match-str">match-str</h3></a><div class="description">external</div><p class="sig">(λ [&Pattern, &String] String)</p><p class="doc">Finds the first match of a pattern in a string. Returns [] otherwise.</p></div><div class="binder"><a href="#matches?" class="anchor"><h3 id="matches?">matches?</h3></a><div class="description">defn</div><p class="sig">(λ [&Pattern, &String] Bool)</p><p class="doc">Checks whether a pattern matches a string.</p></div><div class="binder"><a href="#prn" class="anchor"><h3 id="prn">prn</h3></a><div class="description">external</div><p class="sig">(λ [&Pattern] String)</p><p class="doc"></p></div><div class="binder"><a href="#str" class="anchor"><h3 id="str">str</h3></a><div class="description">external</div><p class="sig">(λ [&Pattern] String)</p><p class="doc"></p></div><div class="binder"><a href="#substitute" class="anchor"><h3 id="substitute">substitute</h3></a><div class="description">external</div><p class="sig">(λ [&Pattern, &String, &String, Int] String)</p><p class="doc">Finds all matches of a pattern in a string and replaces it by another n times (-1 for all occurrences).</p></div></div></body></html>
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
<html><head><meta charset="UTF-8"><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"><link href="carp_style.css" rel="stylesheet"></head><body><div class="content"><div class="logo"><a href="http://github.com/carp-lang/Carp"><img src="logo.png"></a><div class="title">core</div><div class="index"><ul><li><a href="Dynamic.html">Dynamic</a></li><li><a href="Int.html">Int</a></li><li><a href="Long.html">Long</a></li><li><a href="Bool.html">Bool</a></li><li><a href="Float.html">Float</a></li><li><a href="Double.html">Double</a></li><li><a href="Vector2.html">Vector2</a></li><li><a href="V2.html">V2</a></li><li><a href="Vector3.html">Vector3</a></li><li><a href="V3.html">V3</a></li><li><a href="VectorN.html">VectorN</a></li><li><a href="VN.html">VN</a></li><li><a href="Geometry.html">Geometry</a></li><li><a href="Statistics.html">Statistics</a></li><li><a href="String.html">String</a></li><li><a href="Char.html">Char</a></li><li><a href="Pattern.html">Pattern</a></li><li><a href="Array.html">Array</a></li><li><a href="IO.html">IO</a></li><li><a href="System.html">System</a></li><li><a href="Debug.html">Debug</a></li><li><a href="Test.html">Test</a></li><li><a href="Bench.html">Bench</a></li></ul></div></div><h1>System</h1><div class="binder"><a href="#exit" class="anchor"><h3 id="exit">exit</h3></a><div class="description">template</div><p class="sig">(λ [Int] a)</p><p class="doc"></p></div><div class="binder"><a href="#free" class="anchor"><h3 id="free">free</h3></a><div class="description">external</div><p class="sig">(λ [t] ())</p><p class="doc"></p></div><div class="binder"><a href="#get-arg" class="anchor"><h3 id="get-arg">get-arg</h3></a><div class="description">external</div><p class="sig">(λ [Int] &String)</p><p class="doc"></p></div><div class="binder"><a href="#get-args-len" class="anchor"><h3 id="get-args-len">get-args-len</h3></a><div class="description">external</div><p class="sig">(λ [] Int)</p><p class="doc"></p></div><div class="binder"><a href="#seed-random" class="anchor"><h3 id="seed-random">seed-random</h3></a><div class="description">external</div><p class="sig">(λ [Int] ())</p><p class="doc"></p></div><div class="binder"><a href="#sleep-micros" class="anchor"><h3 id="sleep-micros">sleep-micros</h3></a><div class="description">external</div><p class="sig">(λ [Int] ())</p><p class="doc"></p></div><div class="binder"><a href="#sleep-seconds" class="anchor"><h3 id="sleep-seconds">sleep-seconds</h3></a><div class="description">external</div><p class="sig">(λ [Int] ())</p><p class="doc"></p></div><div class="binder"><a href="#system" class="anchor"><h3 id="system">system</h3></a><div class="description">external</div><p class="sig">(λ [&String] ())</p><p class="doc"></p></div><div class="binder"><a href="#time" class="anchor"><h3 id="time">time</h3></a><div class="description">external</div><p class="sig">(λ [] Int)</p><p class="doc"></p></div></div></body></html>
|
||||
<html><head><meta charset="UTF-8"><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"><link href="carp_style.css" rel="stylesheet"></head><body><div class="content"><div class="logo"><a href="http://github.com/carp-lang/Carp"><img src="logo.png"></a><div class="title">core</div><div class="index"><ul><li><a href="Dynamic.html">Dynamic</a></li><li><a href="Int.html">Int</a></li><li><a href="Long.html">Long</a></li><li><a href="Bool.html">Bool</a></li><li><a href="Float.html">Float</a></li><li><a href="Double.html">Double</a></li><li><a href="Vector2.html">Vector2</a></li><li><a href="V2.html">V2</a></li><li><a href="Vector3.html">Vector3</a></li><li><a href="V3.html">V3</a></li><li><a href="VectorN.html">VectorN</a></li><li><a href="VN.html">VN</a></li><li><a href="Geometry.html">Geometry</a></li><li><a href="Statistics.html">Statistics</a></li><li><a href="String.html">String</a></li><li><a href="Char.html">Char</a></li><li><a href="Pattern.html">Pattern</a></li><li><a href="Array.html">Array</a></li><li><a href="IO.html">IO</a></li><li><a href="System.html">System</a></li><li><a href="Debug.html">Debug</a></li><li><a href="Test.html">Test</a></li><li><a href="Bench.html">Bench</a></li></ul></div></div><h1>System</h1><div class="binder"><a href="#exit" class="anchor"><h3 id="exit">exit</h3></a><div class="description">template</div><p class="sig">(λ [Int] a)</p><p class="doc"></p></div><div class="binder"><a href="#free" class="anchor"><h3 id="free">free</h3></a><div class="description">external</div><p class="sig">(λ [t] ())</p><p class="doc">Frees an object. Should not be called except in direst circumstances.</p></div><div class="binder"><a href="#get-arg" class="anchor"><h3 id="get-arg">get-arg</h3></a><div class="description">external</div><p class="sig">(λ [Int] &String)</p><p class="doc">Gets the number of command line arguments.</p></div><div class="binder"><a href="#get-args-len" class="anchor"><h3 id="get-args-len">get-args-len</h3></a><div class="description">external</div><p class="sig">(λ [] Int)</p><p class="doc"></p></div><div class="binder"><a href="#seed-random" class="anchor"><h3 id="seed-random">seed-random</h3></a><div class="description">external</div><p class="sig">(λ [Int] ())</p><p class="doc">Seeds the random number generator.</p></div><div class="binder"><a href="#sleep-micros" class="anchor"><h3 id="sleep-micros">sleep-micros</h3></a><div class="description">external</div><p class="sig">(λ [Int] ())</p><p class="doc"></p></div><div class="binder"><a href="#sleep-seconds" class="anchor"><h3 id="sleep-seconds">sleep-seconds</h3></a><div class="description">external</div><p class="sig">(λ [Int] ())</p><p class="doc">Sleeps for a specified number of microseconds.</p></div><div class="binder"><a href="#system" class="anchor"><h3 id="system">system</h3></a><div class="description">external</div><p class="sig">(λ [&String] ())</p><p class="doc">Performs a system command.</p></div><div class="binder"><a href="#time" class="anchor"><h3 id="time">time</h3></a><div class="description">external</div><p class="sig">(λ [] Int)</p><p class="doc">Gets the current system time as an integer.</p></div></div></body></html>
|
Loading…
Reference in New Issue
Block a user