aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source
diff options
context:
space:
mode:
authorEduardo Julian2017-05-09 19:37:09 -0400
committerEduardo Julian2017-05-09 19:37:09 -0400
commit14362461346b296833143d2d19e2fbbcce3abb01 (patch)
treec2946eb6bedaefe81bac1ea45eaf140c3bcca1b1 /stdlib/source
parent1013353c0d1e7517faa3a9c42751a11075fbc87a (diff)
- Fixed some tests for lux/math/logic/fuzzy.
- Removed a forgotten #seed in a test for lux/math/simple. - Added Hash<Deg>.
Diffstat (limited to 'stdlib/source')
-rw-r--r--stdlib/source/lux/data/number.lux4
1 files changed, 4 insertions, 0 deletions
diff --git a/stdlib/source/lux/data/number.lux b/stdlib/source/lux/data/number.lux
index 9f2c01d0e..418e84a14 100644
--- a/stdlib/source/lux/data/number.lux
+++ b/stdlib/source/lux/data/number.lux
@@ -181,6 +181,10 @@
(def: (hash value)
(_lux_proc ["real" "hash"] [value])))
+(struct: #export _ (Hash Deg)
+ (def: eq Eq<Deg>)
+ (def: hash (|>. (:! Nat))))
+
## [Values & Syntax]
(do-template [<struct> <base> <char-set> <error>]
[(struct: #export <struct> (Codec Text Nat)