Add Num.atan builtin

This commit is contained in:
Jared Ramirez 2020-09-22 16:42:53 -07:00
parent 979c0282ef
commit 5cafbcd5ad
12 changed files with 260 additions and 4 deletions

View file

@ -456,6 +456,12 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
SolvedType::Func(vec![float_type()], Box::new(int_type())),
);
// atan : Float -> Float
add_type(
Symbol::NUM_ATAN,
SolvedType::Func(vec![float_type()], Box::new(float_type())),
);
// Bool module
// and : Bool, Bool -> Bool