diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-11-11 16:26:38 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-11-11 16:27:01 -0800 |
| commit | 9d82d522c17493ad3016ca0678a951485067408f (patch) | |
| tree | da23135f690e843cb5be3798b59d056d8c89f335 /core/math.nom | |
| parent | 370fad9cd32e1931411282070963e80c3b1faf0c (diff) | |
Fixed some autoformatting stuff, and prepping to deprecate some math
shorthand.
Diffstat (limited to 'core/math.nom')
| -rw-r--r-- | core/math.nom | 37 |
1 files changed, 0 insertions, 37 deletions
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) |
