diff options
author | Juan J. Martinez <jjm@usebox.net> | 2024-04-20 08:32:04 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2024-04-20 08:32:04 +0100 |
commit | ecac79e7d4e83ce728b5eff2a8111f4be50b1d1e (patch) | |
tree | 1ad763480f55aca281d7768d4deee526fbd87f2b | |
parent | 044360219f2e4e0b5b5a95cb7ede00753340d61d (diff) | |
download | funco-ecac79e7d4e83ce728b5eff2a8111f4be50b1d1e.tar.gz funco-ecac79e7d4e83ce728b5eff2a8111f4be50b1d1e.zip |
Added modulo operator
-rw-r--r-- | README.md | 2 | ||||
-rwxr-xr-x | funco | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -67,7 +67,7 @@ Literals include: Operators are functions, that includes: -* `+`, `-`, `*`, `/` +* `+`, `-`, `*`, `/`, `mod` * `>`, `<`, `>=`, `<=`, `=`, `!=` * `and`, `or`, `not` @@ -285,6 +285,7 @@ def default_env(): "-": operator.sub, "*": operator.mul, "/": operator.truediv, + "mod": operator.mod, ">": operator.gt, "<": operator.lt, ">=": operator.ge, |