Documentation fixes.
h3rald h3rald@h3rald.com
Sat, 09 Jan 2021 11:33:15 +0100
2 files changed,
5 insertions(+),
6 deletions(-)
M
site/contents/reference-lang.md
→
site/contents/reference-lang.md
@@ -427,7 +427,7 @@ > > Example
> > > > The following program leaves `{(2) :two ;module}` on the stack: > > -> > {} :myscope (2 :due scope @myscope) -> +> > {} :myscope (2 :two scope @myscope) -> #} {#op||saved-symbols||{{none}}||({{s0p}})||@@ -474,13 +474,12 @@ > > Example
> > > > The following program: > > -> > ( -> > (("a" 1) ("b" 2) ("c" 3)) ( +> > {1 :a 2 :b 3 :c} ( > > (dup /a succ succ %a) > > (dup /b succ %b) > > ) tap > > -> > Returns `(("a" 3) ("b" 3) ("c" 3))`.#} +> > Returns `{3 :a 3 :b 3 :c}`.#} {#op||tap!||{{any}} {{q}}||{{any}}|| > Performs the following operations:
M
site/contents/reference-seq.md
→
site/contents/reference-seq.md
@@ -44,7 +44,7 @@ > > (1 37 34 2 6 8 12 21)
> > (dup 20 < swap even? and) filter #} {#op||find||{{q1}} {{q2}}||{{i}}|| -> Returns the index of the first element within {{q1}} that satisfies predicate {{q2}}. +> Returns the index of the first element within {{q1}} that satisfies predicate {{q2}}, or -1 if no element satisfies it. > > > %sidebar% > > Example@@ -118,7 +118,7 @@ >
> > %sidebar% > > Example > > -> > The following program leaves `(1 2 3) (2 4 6)` on the stack: +> > The following program leaves `(1 3 5) (2 4 6)` on the stack: > > > > (1 2 3 4 5 6) > > (odd?) partition #}