aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/math/arithmetic.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/library/lux/math/arithmetic.lux22
1 files changed, 22 insertions, 0 deletions
diff --git a/stdlib/source/library/lux/math/arithmetic.lux b/stdlib/source/library/lux/math/arithmetic.lux
new file mode 100644
index 000000000..46488890a
--- /dev/null
+++ b/stdlib/source/library/lux/math/arithmetic.lux
@@ -0,0 +1,22 @@
+(.require
+ [library
+ [lux (.except)]])
+
+... https://en.wikipedia.org/wiki/Arithmetic
+(type .public (Arithmetic of)
+ (Interface
+ (is (-> of of
+ of)
+ +)
+ (is (-> of of
+ of)
+ -)
+ (is (-> of of
+ of)
+ *)
+ (is (-> of of
+ of)
+ /)
+ (is (-> of of
+ of)
+ %)))