Ops for sqrt and round

This commit is contained in:
Richard Feldman 2020-06-23 18:05:30 -04:00
parent 9f8c48118f
commit 1c98248b91
6 changed files with 221 additions and 163 deletions

View file

@ -5,7 +5,8 @@
pub enum LowLevel {
ListLen,
ListGetUnsafe,
ListSetUnsafe,
ListSet,
ListSetInPlace,
ListIsEmpty,
NumAdd,
NumSub,
@ -14,12 +15,14 @@ pub enum LowLevel {
NumGte,
NumLt,
NumLte,
NumDivUnsafe,
NumRemUnsafe,
NumDivUnchecked,
NumRemUnchecked,
NumAbs,
NumNeg,
NumSin,
NumCos,
NumSqrt,
NumRound,
Eq,
NotEq,
And,

View file

@ -644,23 +644,15 @@ define_builtins! {
1 LIST_AT_LIST: "@List" // the List.@List private tag
2 LIST_IS_EMPTY: "isEmpty"
3 LIST_GET: "get"
4 LIST_GET_ARG_LIST: "get#list"
5 LIST_GET_ARG_INDEX: "get#index"
6 LIST_SET: "set"
7 LIST_SET_IN_PLACE: "#setInPlace"
8 LIST_PUSH: "push"
9 LIST_MAP: "map"
10 LIST_LEN: "len"
11 LIST_LEN_ARG: "len#list"
12 LIST_FOLDL: "foldl"
13 LIST_FOLDR: "foldr"
14 LIST_CONCAT: "concat"
15 LIST_FIRST: "first"
16 LIST_FIRST_ARG: "first#list"
17 LIST_SINGLE: "single"
18 LIST_SET_ARG_LIST: "set#list"
19 LIST_SET_ARG_INDEX: "set#index"
20 LIST_SET_ARG_ELEM: "set#elem"
4 LIST_SET: "set"
5 LIST_PUSH: "push"
6 LIST_MAP: "map"
7 LIST_LEN: "len"
8 LIST_FOLDL: "foldl"
9 LIST_FOLDR: "foldr"
10 LIST_CONCAT: "concat"
11 LIST_FIRST: "first"
12 LIST_SINGLE: "single"
}
5 RESULT: "Result" => {
0 RESULT_RESULT: "Result" imported // the Result.Result type alias