Skip to content

Commit

Permalink
minor doc updates
Browse files Browse the repository at this point in the history
getting ready for the next release tag ATM.
  • Loading branch information
vygr committed May 1, 2024
1 parent 561c842 commit c571196
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
10 changes: 4 additions & 6 deletions docs/lisp/conditionals.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,14 @@ So let's see a few examples:
(print "b is 0"))
((= b 1)
(print "b is 1"))
(:t (print "no test is none :nil!")))
((print "no test is none :nil!")))
```

Here the tests using symbol `a` have precedence over those with symbol `b` and
the final clause will happen if no other clause.

```vdu
(cond
(a :nil)
(:t))
(cond (a :nil) (:t))
```

Here if `a` is true then return `:nil` else return `:t`. So a simple logical not.
Expand All @@ -123,8 +121,8 @@ of the symbols used at the entry to the `(cond ...)` !
((= id +event_max)
;maximize app
)
(:t ;ui event for window....
(. *window* :event msg)))
;ui event for window....
((. *window* :event msg)))
```

### case
Expand Down
5 changes: 3 additions & 2 deletions docs/lisp/numerics.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ChrysaLisp supports a variety of number formats. Integers, fixed point and
reals. Functions are provided to convert between these formats.

Vectors are arrays of these primitives. There are functions that operate on
every member of the array with a single call.
every member of the vector with a single call.

## Numbers

Expand Down Expand Up @@ -133,7 +133,8 @@ Standard constructor macros are provided for common types. `(Vec3-f ...)`,

All base vector operations take an optional output vector. This avoids a memory
allocation and can provide faster operation. But be aware that the given
optional output vector will be the returned value from the call !
optional output vector will be the returned value from the call, be aware you
may mutate an input vector !

Temp vector constants are defined in the `lib/math/vector.inc` file, such as
`+fixeds_tmp3`, `+fixeds_tmp4`, `+reals_tmp3`, `+reals_tmp4`, `+fixeds_zero3`,
Expand Down

0 comments on commit c571196

Please sign in to comment.