Skip to content

Commit

Permalink
v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
candid82 committed Nov 9, 2022
1 parent c6b7771 commit 462803e
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 17 deletions.
2 changes: 1 addition & 1 deletion core/procs.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const (
PRINT_IF_NOT_NIL
)

const VERSION = "v1.0.2"
const VERSION = "v1.1.0"

const (
CLJ Dialect = iota
Expand Down
62 changes: 47 additions & 15 deletions docs/joker.core.html
Original file line number Diff line number Diff line change
Expand Up @@ -1132,6 +1132,12 @@ <h2 id="_index">Index</h2>
<li>
<a href="#update-in">update-in</a>
</li>
<li>
<a href="#update-keys">update-keys</a>
</li>
<li>
<a href="#update-vals">update-vals</a>
</li>
<li>
<a href="#use">use</a>
</li>
Expand Down Expand Up @@ -1549,7 +1555,7 @@ <h3 class="Function" id="<!">&lt;!</h3>
<p class="var-docstr">Takes a value from ch.<br>
Returns nil if ch is closed and nothing is available on ch.<br>
Blocks if nothing is available on ch and ch is not closed.</p>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4475">source</a>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4497">source</a>
<a href="#" class="types">show types</a>
</li>
<li>
Expand Down Expand Up @@ -1616,7 +1622,7 @@ <h3 class="Function" id=">!">&gt;!</h3>
Throws an exception if val is nil.<br>
Blocks if ch is full (no buffer space is available).<br>
Returns true unless ch is already closed.</p>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4483">source</a>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4505">source</a>
<a href="#" class="types">show types</a>
</li>
<li>
Expand Down Expand Up @@ -2058,7 +2064,7 @@ <h3 class="Function" id="chan">chan</h3>
<div><code>(chan n)</code><code class="hide">^Channel (chan ^Int n)</code></div>
</pre>
<p class="var-docstr">Returns a new channel with an optional buffer of size n.</p>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4469">source</a>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4491">source</a>
<a href="#" class="types">show types</a>
</li>
<li>
Expand Down Expand Up @@ -2115,7 +2121,7 @@ <h3 class="Function" id="close!">close!</h3>
<br>
Logically closing happens after all puts have been delivered. Therefore, any<br>
blocked puts will remain blocked until a taker releases them.</p>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4492">source</a>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4514">source</a>
<a href="#" class="types">show types</a>
</li>
<li>
Expand Down Expand Up @@ -2411,7 +2417,7 @@ <h3 class="Macro" id="defmethod">defmethod</h3>
<pre class="var-usage"><div><code>(defmethod multifn dispatch-val &amp; fn-tail)</code></div>
</pre>
<p class="var-docstr">Creates and installs a new method of multimethod associated with dispatch-value. </p>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4389">source</a>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4411">source</a>

</li>
<li>
Expand Down Expand Up @@ -2442,7 +2448,7 @@ <h3 class="Macro" id="defmulti">defmulti</h3>
Multimethods expect the value of the hierarchy option to be supplied as<br>
a reference type e.g. a var (i.e. via the Var-quote dispatch macro #&#39;<br>
or the var special form).</p>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4329">source</a>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4351">source</a>

</li>
<li>
Expand Down Expand Up @@ -2813,7 +2819,7 @@ <h3 class="Function" id="exit">exit</h3>
<div><code>(exit code)</code><code class="hide">(exit ^Int code)</code></div>
</pre>
<p class="var-docstr">Causes the current program to exit with the given status code (defaults to 0).</p>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4535">source</a>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4557">source</a>
<a href="#" class="types">show types</a>
</li>
<li>
Expand Down Expand Up @@ -3079,7 +3085,7 @@ <h3 class="Function" id="get-method">get-method</h3>
</pre>
<p class="var-docstr">Given a multimethod and a dispatch value, returns the dispatch fn<br>
that would apply to that value, or nil if none apply and no default</p>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4427">source</a>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4449">source</a>
<a href="#" class="types">show types</a>
</li>
<li>
Expand All @@ -3101,7 +3107,7 @@ <h3 class="Macro" id="go">go</h3>
So using goroutines only makes sense if you do I/O (specifically, calling the above functions)<br>
inside them. Also, note that a goroutine may never have a chance to run if the root goroutine<br>
(or another goroutine) doesn&#39;t do any I/O or channel operations (&lt;! or &gt;!).</p>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4451">source</a>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4473">source</a>

</li>
<li>
Expand Down Expand Up @@ -3368,7 +3374,7 @@ <h3 class="Function" id="joker-version">joker-version</h3>
<pre class="var-usage"><div><code>(joker-version)</code><code class="hide">^String (joker-version)</code></div>
</pre>
<p class="var-docstr">Returns joker version as a printable string.</p>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4291">source</a>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4313">source</a>
<a href="#" class="types">show types</a>
</li>
<li>
Expand Down Expand Up @@ -3788,7 +3794,7 @@ <h3 class="Function" id="methods">methods</h3>
<pre class="var-usage"><div><code>(methods multifn)</code><code class="hide">^Map (methods multifn)</code></div>
</pre>
<p class="var-docstr">Given a multimethod, returns a map of dispatch values -&gt; dispatch fns</p>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4419">source</a>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4441">source</a>
<a href="#" class="types">show types</a>
</li>
<li>
Expand Down Expand Up @@ -4352,7 +4358,7 @@ <h3 class="Function" id="prefer-method">prefer-method</h3>
</pre>
<p class="var-docstr">Causes the multimethod to prefer matches of dispatch-val-x over dispatch-val-y<br>
when there is a conflict</p>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4412">source</a>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4434">source</a>

</li>
<li>
Expand All @@ -4362,7 +4368,7 @@ <h3 class="Function" id="prefers">prefers</h3>
<pre class="var-usage"><div><code>(prefers multifn)</code><code class="hide">^Map (prefers multifn)</code></div>
</pre>
<p class="var-docstr">Given a multimethod, returns a map of preferred value -&gt; set of other values</p>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4439">source</a>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4461">source</a>
<a href="#" class="types">show types</a>
</li>
<li>
Expand Down Expand Up @@ -4775,7 +4781,7 @@ <h3 class="Function" id="remove-all-methods">remove-all-methods</h3>
<pre class="var-usage"><div><code>(remove-all-methods multifn)</code></div>
</pre>
<p class="var-docstr">Removes all of the methods of multimethod.</p>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4397">source</a>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4419">source</a>

</li>
<li>
Expand All @@ -4785,7 +4791,7 @@ <h3 class="Function" id="remove-method">remove-method</h3>
<pre class="var-usage"><div><code>(remove-method multifn dispatch-val)</code></div>
</pre>
<p class="var-docstr">Removes the method of multimethod associated with dispatch-value.</p>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4406">source</a>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4428">source</a>

</li>
<li>
Expand Down Expand Up @@ -5549,6 +5555,32 @@ <h3 class="Function" id="update-in">update-in</h3>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L3544">source</a>
<a href="#" class="types">show types</a>
</li>
<li>
<h3 class="Function" id="update-keys">update-keys</h3>
<span class="var-kind Function">Function</span>
<span class="var-added">v1.1</span>
<pre class="var-usage"><div><code>(update-keys m f)</code><code class="hide">^Map (update-keys m ^Callable f)</code></div>
</pre>
<p class="var-docstr">m f =&gt; {(f k) v ...}<br>
Given a map m and a function f of 1-argument, returns a new map whose<br>
keys are the result of applying f to the keys of m, mapped to the<br>
corresponding values of m.<br>
f must return a unique key for each key of m, else the behavior is undefined.</p>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4291">source</a>
<a href="#" class="types">show types</a>
</li>
<li>
<h3 class="Function" id="update-vals">update-vals</h3>
<span class="var-kind Function">Function</span>
<span class="var-added">v1.1</span>
<pre class="var-usage"><div><code>(update-vals m f)</code><code class="hide">^Map (update-vals m ^Callable f)</code></div>
</pre>
<p class="var-docstr">m f =&gt; {k (f v) ...}<br>
Given a map m and a function f of 1-argument, returns a new map where the keys of m<br>
are mapped to result of applying f to the corresponding values of m.</p>
<a href="https://github.com/candid82/joker/blob/master/core/data/core.joke#L4303">source</a>
<a href="#" class="types">show types</a>
</li>
<li>
<h3 class="Function" id="use">use</h3>
<span class="var-kind Function">Function</span>
Expand Down
Loading

0 comments on commit 462803e

Please sign in to comment.