aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md9
1 files changed, 7 insertions, 2 deletions
diff --git a/README.md b/README.md
index 42da196..319e821 100644
--- a/README.md
+++ b/README.md
@@ -60,8 +60,7 @@ $config!
60-- file 'main.moon' 60-- file 'main.moon'
61import 'macro' as {:$config, :$assert, :$asserts} 61import 'macro' as {:$config, :$assert, :$asserts}
62 62
63macro expr and = (...)-> 63macro expr and = (...)-> "#{ table.concat {...}, ' and ' }"
64 "#{ table.concat {...}, ' and ' }"
65 64
66$asserts item ~= nil 65$asserts item ~= nil
67$config false 66$config false
@@ -96,6 +95,7 @@ export map = (items, func)-> [func item for item in *items]
96export filter = (items, func)-> [item for item in *items when func item] 95export filter = (items, func)-> [item for item in *items when func item]
97 96
98-- file 'main.moon' 97-- file 'main.moon'
98import 'Config' as {:flag, :value}
99import 'Utils' as {:map, :filter} 99import 'Utils' as {:map, :filter}
100``` 100```
101Compiles to: 101Compiles to:
@@ -139,6 +139,11 @@ _module_0["filter"] = filter
139return _module_0 139return _module_0
140 140
141-- file 'main.moon' 141-- file 'main.moon'
142local flag, value
143do
144 local _obj_0 = require('Config')
145 flag, value = _obj_0.flag, _obj_0.value
146end
142local map, filter 147local map, filter
143do 148do
144 local _obj_0 = require('Utils') 149 local _obj_0 = require('Utils')