aboutsummaryrefslogtreecommitdiff
path: root/utils.moon
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-08-22 01:02:41 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2017-08-22 01:02:41 -0700
commit0e916161b1b47758e0bb15051028d8c92c6446e7 (patch)
tree4d60014362c1101efe99224416e40ca43f5de655 /utils.moon
parent4713d7db0dcb713b4a36e63e5a5322829fca7c97 (diff)
Updated core with new syntax.
Diffstat (limited to 'utils.moon')
-rw-r--r--utils.moon1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils.moon b/utils.moon
index a048f2c..3004c58 100644
--- a/utils.moon
+++ b/utils.moon
@@ -34,6 +34,7 @@ utils = {
keys: (t)-> [k for k in pairs(t)]
values: (t)-> [v for _,v in pairs(t)]
+ set: (list)-> {i,true for i in *list}
sum: (t)->
with tot = 0