mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
Wiring up dictionary and hash rust code to their zig counterparts
This commit is contained in:
parent
c7f6de2afe
commit
520dcfbaca
13 changed files with 79 additions and 10 deletions
|
@ -906,6 +906,13 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
|||
|
||||
// Dict module
|
||||
|
||||
// : Attr * (Dict k v) -> Attr * Nat
|
||||
add_type(Symbol::DICT_SIZE, {
|
||||
let_tvars! { star1, k , v, star2, int };
|
||||
|
||||
unique_function(vec![dict_type(star1, k, v)], int_type(star2, int))
|
||||
});
|
||||
|
||||
// empty : Attr * (Dict k v)
|
||||
add_type(Symbol::DICT_EMPTY, {
|
||||
let_tvars! { star, k , v };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue