diff options
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/library/lux/control/function.lux | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/source/library/lux/control/function.lux b/stdlib/source/library/lux/control/function.lux index 2f31e896a..d0bc286ae 100644 --- a/stdlib/source/library/lux/control/function.lux +++ b/stdlib/source/library/lux/control/function.lux @@ -7,8 +7,8 @@ (def: .public identity {#.doc (example "Identity function." "Does nothing to its argument and just returns it." - (is? (identity value) - value))} + (same? (identity value) + value))} (All [a] (-> a a)) (|>>)) @@ -27,9 +27,9 @@ (All [o] (-> o (All [i] (-> i o)))) (function (_ _) value)) -(def: .public (flip f) +(def: .public (flipped f) {#.doc (example "Flips the order of the arguments of a function." - (= ((flip f) "foo" "bar") + (= ((flipped f) "foo" "bar") (f "bar" "foo")))} (All [a b c] (-> (-> a b c) (-> b a c))) |