diff options
Diffstat (limited to 'stdlib/source/lux/control/function.lux')
-rw-r--r-- | stdlib/source/lux/control/function.lux | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/stdlib/source/lux/control/function.lux b/stdlib/source/lux/control/function.lux index 5a33a2aae..ce999eb39 100644 --- a/stdlib/source/lux/control/function.lux +++ b/stdlib/source/lux/control/function.lux @@ -35,6 +35,11 @@ (-> (-> a b c) (-> b a c))) (function (_ x y) (f y x))) +(def: #export (apply input function) + (All [i o] + (-> i (-> i o) o)) + (function input)) + (structure: #export monoid (All [a] (Monoid (-> a a))) (def: identity ..identity) (def: compose ..compose)) |