aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Julian2017-06-17 20:44:50 -0400
committerEduardo Julian2017-06-17 20:44:50 -0400
commit5bafba704f5e5b837b68bafbd02f22beaeafda02 (patch)
treea0c48810b806161329606b3794e1aad6f13fa075
parentdaa6c92c14d9b85bf3ade2b6684e3c97dcda851e (diff)
- Changed the way lux/data/product;both works.
-rw-r--r--stdlib/source/lux/data/product.lux9
1 files changed, 5 insertions, 4 deletions
diff --git a/stdlib/source/lux/data/product.lux b/stdlib/source/lux/data/product.lux
index fe31c2020..d38350929 100644
--- a/stdlib/source/lux/data/product.lux
+++ b/stdlib/source/lux/data/product.lux
@@ -31,7 +31,8 @@
[y x]))
(def: #export (both f g)
- (All [a b c] (-> (-> a b) (-> a c)
- (-> a [b c])))
- (function [input]
- [(f input) (g input)]))
+ (All [a b c d]
+ (-> (-> a c) (-> b d)
+ (-> [a b] [c d])))
+ (function [[x y]]
+ [(f x) (g y)]))