From c0efa6c7d12e3f9749f6e2dafe507799aa47fad6 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 12 Sep 2017 17:42:35 -0700 Subject: Tweaks and fixes. --- utils.moon | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'utils.moon') diff --git a/utils.moon b/utils.moon index 7ba39bb..1f6d0d7 100644 --- a/utils.moon +++ b/utils.moon @@ -64,6 +64,10 @@ utils = { with tot = 0 for _,x in pairs(t) do tot += x + product: (t)-> + with prod = 1 + for _,x in pairs(t) do prod *= x + all: (t)-> for _,x in pairs t if not x then return false -- cgit v1.2.3