mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
make hash work for integers/floats/strings
This commit is contained in:
parent
1afd64f7e7
commit
2d63e24843
9 changed files with 88 additions and 18 deletions
|
@ -729,6 +729,12 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
|||
|
||||
// Dict module
|
||||
|
||||
// Dict.hashTestOnly : k, v -> Nat
|
||||
add_type(
|
||||
Symbol::DICT_TEST_HASH,
|
||||
top_level_function(vec![flex(TVAR1), flex(TVAR2)], Box::new(nat_type())),
|
||||
);
|
||||
|
||||
// len : Dict * * -> Nat
|
||||
add_type(
|
||||
Symbol::DICT_LEN,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue