mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
just before Num
This commit is contained in:
parent
c0d3543d5a
commit
65b1b3fcce
11 changed files with 976 additions and 90 deletions
|
@ -169,6 +169,7 @@ pub fn builtin_defs_map(symbol: Symbol, var_store: &mut VarStore) -> Option<Def>
|
|||
SET_DIFFERENCE => set_difference,
|
||||
SET_TO_LIST => set_to_list,
|
||||
SET_FROM_LIST => set_from_list,
|
||||
SET_TO_DICT=> set_to_dict,
|
||||
SET_INSERT => set_insert,
|
||||
SET_REMOVE => set_remove,
|
||||
SET_CONTAINS => set_contains,
|
||||
|
@ -3963,6 +3964,11 @@ fn set_from_list(symbol: Symbol, var_store: &mut VarStore) -> Def {
|
|||
lowlevel_1(symbol, LowLevel::SetFromList, var_store)
|
||||
}
|
||||
|
||||
/// Set.toDict : Set k -> Dict k {}
|
||||
fn set_to_dict(symbol: Symbol, var_store: &mut VarStore) -> Def {
|
||||
lowlevel_1(symbol, LowLevel::SetToDict, var_store)
|
||||
}
|
||||
|
||||
/// Set.insert : Set k, k -> Set k
|
||||
fn set_insert(symbol: Symbol, var_store: &mut VarStore) -> Def {
|
||||
let dict_var = var_store.fresh();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue