From 9d82d522c17493ad3016ca0678a951485067408f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 11 Nov 2018 16:26:38 -0800 Subject: Fixed some autoformatting stuff, and prepping to deprecate some math shorthand. --- core/math.nom | 37 ------------------------------------- 1 file changed, 37 deletions(-) (limited to 'core') diff --git a/core/math.nom b/core/math.nom index 583cc8c..aa1d200 100644 --- a/core/math.nom +++ b/core/math.nom @@ -143,43 +143,6 @@ externally [product of %items, product %items] all mean: externally [avg of %items, average of %items] all mean (..) (sum of %items) / (size of %items) -# Shorthand for control flow -[if all of %items %body, if all of %items then %body] all parse as (..) - if (all of %items) %body - -[unless all of %items %body, unless all of %items then %body] all parse as (..) - if (not (all of %items)) %body - -[if any of %items %body, if any of %items then %body] all parse as (..) - if (any of %items) %body - -[unless any of %items %body, unless any of %items then %body] all parse as (..) - if (not (any of %items)) %body - -[if none of %items %body, if none of %items then %body] all parse as (..) - if (not (any of %items)) %body - -[unless none of %items %body, unless none of %items then %body] all parse as (..) - if (any of %items) %body - -[if all of %items %body else %else, if all of %items then %body else %else] \ -..all parse as (if (all of %items) %body else %else) - -[unless all of %items %body else %else, unless all of %items then %body else %else] \ -..all parse as (if (not (all of %items)) %body else %else) - -[if any of %items %body else %else, if any of %items then %body else %else] \ -..all parse as (if (any of %items) %body else %else) - -[unless any of %items %body else %else, unless any of %items then %body else %else] \ -..all parse as (if (not (any of %items)) %body else %else) - -[if none of %items %body else %else, if none of %items then %body else %else] \ -..all parse as (if (not (any of %items)) %body else %else) - -[unless none of %items %body else %else, unless none of %items then %body else %else] \ -..all parse as (if (any of %items) %body else %else) - # Min/max externally [min of %items, smallest of %items, lowest of %items] all mean: %best = (nil) -- cgit v1.2.3