mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Compare values with runtime representation
This commit is contained in:
parent
b18af7e1f3
commit
0606086eb6
3 changed files with 15 additions and 4 deletions
|
@ -1825,6 +1825,13 @@ impl<'a> Layout<'a> {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn runtime_representation(&self) -> Self {
|
||||
match self {
|
||||
Layout::LambdaSet(lambda_set) => lambda_set.runtime_representation(),
|
||||
other => *other,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Avoid recomputing Layout from Variable multiple times.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue