1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-08 11:33:02 +00:00

floor div, variadic mod

This commit is contained in:
primo-ppcg
2023-06-28 16:35:16 +07:00
parent 0cd00da354
commit c83f3ec097
9 changed files with 90 additions and 42 deletions

View File

@@ -151,7 +151,7 @@
(defmacro -= "Decrements the var x by n." [x & ns] ~(set ,x (,- ,x ,;ns)))
(defmacro *= "Shorthand for (set x (\\* x n))." [x & ns] ~(set ,x (,* ,x ,;ns)))
(defmacro /= "Shorthand for (set x (/ x n))." [x & ns] ~(set ,x (,/ ,x ,;ns)))
(defmacro %= "Shorthand for (set x (% x n))." [x n] ~(set ,x (,% ,x ,n)))
(defmacro %= "Shorthand for (set x (% x n))." [x & ns] ~(set ,x (,% ,x ,;ns)))
(defmacro assert
"Throw an error if x is not truthy. Will not evaluate `err` if x is truthy."