aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/macro.moon
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-03-11 00:31:43 +0800
committerLi Jin <dragon-fly@qq.com>2020-03-11 00:31:43 +0800
commite2490546fe9937d43b87c0432b967824dd0f90c7 (patch)
treee47110b7dbb812e57a5328288c26689e395ae676 /spec/inputs/macro.moon
parent1ee056eedf773ac6166247755439092e0e0a9bca (diff)
downloadyuescript-e2490546fe9937d43b87c0432b967824dd0f90c7.tar.gz
yuescript-e2490546fe9937d43b87c0432b967824dd0f90c7.tar.bz2
yuescript-e2490546fe9937d43b87c0432b967824dd0f90c7.zip
update.
Diffstat (limited to 'spec/inputs/macro.moon')
-rw-r--r--spec/inputs/macro.moon3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/inputs/macro.moon b/spec/inputs/macro.moon
index eb1e224..db03a10 100644
--- a/spec/inputs/macro.moon
+++ b/spec/inputs/macro.moon
@@ -61,9 +61,10 @@ macro expr pipe = (...)->
61 61
62$foreach $filter($map({1,2,3}, _ * 2), _ > 4), print _ 62$foreach $filter($map({1,2,3}, _ * 2), _ > 4), print _
63 63
64print $pipe( 64val = $pipe(
65 {1, 2, 3} 65 {1, 2, 3}
66 $map(_ * 2) 66 $map(_ * 2)
67 $filter(_ > 4) 67 $filter(_ > 4)
68 $reduce(0, _1 + _2) 68 $reduce(0, _1 + _2)
69) 69)
70