Add Num.ceiling

This commit is contained in:
Jared Ramirez 2020-09-15 18:37:45 -07:00
parent 9dcf990fe3
commit a0402bca4d
10 changed files with 71 additions and 6 deletions

View file

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