implement Set inclusion functions

This commit is contained in:
Folkert 2021-02-14 23:57:35 +01:00
parent 1256327caa
commit 57e8d5b4c3
8 changed files with 360 additions and 9 deletions

View file

@ -1053,7 +1053,7 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
// diff : Attr * (Set * a)
// , Attr * (Set * a)
// -> Attr * (Set * a)
add_type(Symbol::SET_DIFF, set_combine);
add_type(Symbol::SET_DIFFERENCE, set_combine);
// foldl : Attr (* | u) (Set (Attr u a))
// , Attr Shared (Attr u a -> b -> b)