diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-07 18:03:37 -0800 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-07 18:03:37 -0800 |
| commit | c92e5fbc81e57ada43f2c17792e500da5b708bee (patch) | |
| tree | 8f89f2c0ab21de3fe6110c84ee980e0920d18fb4 /lib/utils.nom | |
| parent | b1c6354464ab2c9f8f09217815a11317cc068cec (diff) | |
Some overhaul of binary operators so that arbitrary math patterns work
fine.
Diffstat (limited to 'lib/utils.nom')
| -rw-r--r-- | lib/utils.nom | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/utils.nom b/lib/utils.nom index e46326e..ddaac8d 100644 --- a/lib/utils.nom +++ b/lib/utils.nom @@ -73,10 +73,6 @@ compile [e] to: "math.e" compile [golden ratio, phi] to: "((1 + math.sqrt(5)) / 2)" # Common utility functions -compile [sum of %items, sum %items] to: "nomsu.utils.sum(\(%items as lua))" -compile [product of %items, product %items] to: "nomsu.utils.product(\(%items as lua))" -compile [all of %items] to: "nomsu.utils.all(\(%items as lua))" -compile [any of %items] to: "nomsu.utils.any(\(%items as lua))" rule [avg of %items, average of %items] =: =lua "(nomsu.utils.sum(\%items)/#\%items)" compile [min of %items, smallest of %items, lowest of %items] to: |
