mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Add support for hash key of tuples
This commit is contained in:
parent
f4f9ae7a5d
commit
e6cac71ca5
3 changed files with 16 additions and 3 deletions
|
@ -43,6 +43,10 @@ pub(crate) fn debug_name_record(fields: &[Lowercase]) -> String {
|
|||
str
|
||||
}
|
||||
|
||||
pub(crate) fn debug_name_tuple(arity: u32) -> String {
|
||||
format!("(arity:{arity})")
|
||||
}
|
||||
|
||||
pub(crate) fn debug_name_tag(tags: &[(TagName, u16)]) -> String {
|
||||
let mut str = String::from('[');
|
||||
tags.iter().enumerate().for_each(|(i, (tag, arity))| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue