From ddb839bfd4ba8dbdd214f3e885629fc8fe57e68c Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 14 Mar 2019 16:30:43 -0700 Subject: Replacing (size of $) with (#$) as should have been done before. --- lib/core/math.nom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/core/math.nom') diff --git a/lib/core/math.nom b/lib/core/math.nom index e2c759a..3aab2b5 100644 --- a/lib/core/math.nom +++ b/lib/core/math.nom @@ -94,7 +94,7 @@ external: $prod *= $ return $prod - [avg of $items, average of $items] all mean ((sum of $items) / (size of $items)) + [avg of $items, average of $items] all mean ((sum of $items) / (#$items)) # Min/max [min of $items, smallest of $items, lowest of $items] all mean: @@ -207,4 +207,4 @@ external: ..all compile to "math.random(\($low as lua expr), \($high as lua expr))" [random choice from $elements, random choice $elements, random $elements] - ..all mean (=lua "\$elements[math.random(#\$elements)]") + ..all mean (=lua "\$elements[math.random(#\$elements)]") \ No newline at end of file -- cgit v1.2.3