mirror of
https://github.com/janet-lang/janet
synced 2024-12-24 07:20:27 +00:00
aee1687215
The new RNG wraps up state for random number generation, so one can have many rngs and even marshal and unmarshal them. Adds math/rng, math/rng-uniform, and math/rng-int. Also introduce `in` and change semantics for indexing out of range. This commit enforces stricter invariants on keys when indexing via a function call on the data structure, or the new `in` function. The `get` function is now more lax about keys, and will not throw an error when a bad key is used for a data structure, instead returning the default value. |
||
---|---|---|
.. | ||
amalg | ||
install | ||
helper.janet | ||
suite0.janet | ||
suite1.janet | ||
suite2.janet | ||
suite3.janet | ||
suite4.janet | ||
suite5.janet | ||
suite6.janet | ||
suite7.janet |