aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/collections.nom3
-rw-r--r--core/math.nom4
2 files changed, 3 insertions, 4 deletions
diff --git a/core/collections.nom b/core/collections.nom
index 5daaa09..8dbc79d 100644
--- a/core/collections.nom
+++ b/core/collections.nom
@@ -84,8 +84,7 @@ parse [..]
# Dict comprehensions
test:
assume (((% * %) = % for % in [1, 2, 3]) == {1:1, 4:2, 9:3})
-parse [%key = %value for %item in %iterable, %key %value for %item in %iterable] as
-..(..)
+parse [%key = %value for %item in %iterable, %key %value for %item in %iterable] as (..)
result of:
%comprehension = {}
for %item in %iterable:
diff --git a/core/math.nom b/core/math.nom
index 11282a4..d6ddbce 100644
--- a/core/math.nom
+++ b/core/math.nom
@@ -99,8 +99,8 @@ action [avg of %items, average of %items] (=lua "(utils.sum(\%items)/#\%items)")
compile [min of %items, smallest of %items, lowest of %items] to (..)
Lua value "utils.min(\(%items as lua expr))"
-compile [max of %items, biggest of %items, largest of %items, highest of %items] to
-..(Lua value "utils.max(\(%items as lua expr))")
+compile [max of %items, biggest of %items, largest of %items, highest of %items] to (..)
+ Lua value "utils.max(\(%items as lua expr))"
test:
assume ((min of [3, -4, 1, 2] by % = (% * %)) == 1)