1
0
mirror of https://github.com/janet-lang/janet synced 2025-12-13 12:08:07 +00:00

Add mod function to core.

The `mod` function is a pair function with `%`, or te remainder
function and is distinct from it. This is taken from common lisp.
This commit is contained in:
Calvin Rose
2020-01-23 18:54:30 -06:00
parent b8d530da36
commit 28d41039b8
9 changed files with 108 additions and 22 deletions

View File

@@ -1024,6 +1024,8 @@ enum JanetOpCode {
JOP_MULTIPLY,
JOP_DIVIDE_IMMEDIATE,
JOP_DIVIDE,
JOP_MODULO,
JOP_REMAINDER,
JOP_BAND,
JOP_BOR,
JOP_BXOR,