mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-11 13:37:57 +03:00
core: update dcostring for range-or-default
This commit is contained in:
parent
be8424657d
commit
229264f7d1
@ -24,8 +24,8 @@ the input given was wrong, containing an error message.")
|
|||||||
(set! e (+ e step))))
|
(set! e (+ e step))))
|
||||||
(Result.Success x))))
|
(Result.Success x))))
|
||||||
|
|
||||||
(doc range-or-default "is an unsafe version of [`range](#range). It returns
|
(doc range-or-default "is a version of [`range`](#range) that returns an empty
|
||||||
an empty array on failure.")
|
array on failure.")
|
||||||
(defn range-or-default [start end step]
|
(defn range-or-default [start end step]
|
||||||
(Result.from-success (range start end step) []))
|
(Result.from-success (range start end step) []))
|
||||||
)
|
)
|
||||||
|
@ -981,8 +981,8 @@ the input given was wrong, containing an error message.</p>
|
|||||||
(range-or-default start end step)
|
(range-or-default start end step)
|
||||||
</pre>
|
</pre>
|
||||||
<p class="doc">
|
<p class="doc">
|
||||||
<p>is an unsafe version of <a href="#range">`range</a>. It returns
|
<p>is a version of <a href="#range"><code>range</code></a> that returns an empty
|
||||||
an empty array on failure.</p>
|
array on failure.</p>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user