aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/math/number/int.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/library/lux/math/number/int.lux')
-rw-r--r--stdlib/source/library/lux/math/number/int.lux6
1 files changed, 3 insertions, 3 deletions
diff --git a/stdlib/source/library/lux/math/number/int.lux b/stdlib/source/library/lux/math/number/int.lux
index 9724bc766..64984968e 100644
--- a/stdlib/source/library/lux/math/number/int.lux
+++ b/stdlib/source/library/lux/math/number/int.lux
@@ -88,7 +88,7 @@
[(../ param subject)
(..% param subject)])
-(def: #export (negate value)
+(def: #export (opposite value)
(-> Int Int)
(..- value +0))
@@ -218,7 +218,7 @@
(def: (encode value)
(if (..< +0 value)
- (|> value inc ..negate .nat inc (\ <codec> encode) ("lux text concat" ..-sign))
+ (|> value inc ..opposite .nat inc (\ <codec> encode) ("lux text concat" ..-sign))
(|> value .nat (\ <codec> encode) ("lux text concat" ..+sign))))
(def: (decode repr)
@@ -235,7 +235,7 @@
(|> repr
("lux text clip" 1 (dec input_size))
(\ <codec> decode)
- (\ try.functor map (|>> dec .int ..negate dec)))
+ (\ try.functor map (|>> dec .int ..opposite dec)))
_
(#try.Failure <error>))