aboutsummaryrefslogtreecommitdiffstats
path: root/core/common.milch
diff options
context:
space:
mode:
Diffstat (limited to 'core/common.milch')
-rw-r--r--core/common.milch7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/common.milch b/core/common.milch
index cddf02f..2dc6698 100644
--- a/core/common.milch
+++ b/core/common.milch
@@ -1,8 +1,11 @@
;; Control flow
;;;;;;;;;;;;;;;;;;;;;;;;;
-(let . (\[f g]
- (\[x] (f (g x)))))
+; function composition
+(let . (\[f g x] (f (g x))))
+
+; impure version of .
+(let .! (\![f g x] (f (g x))))
(let flow (\[fs]
(foldr . id (reverse fs))))