mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
Merge pull request #2372 from rtfeldman/effect-forever
Add `Effect.forever`
This commit is contained in:
commit
82c7e8c37e
5 changed files with 864 additions and 8 deletions
|
@ -569,6 +569,11 @@ impl<'a> LambdaSet<'a> {
|
|||
*self.representation
|
||||
}
|
||||
|
||||
/// Does the lambda set contain the given symbol?
|
||||
pub fn contains(&self, symbol: Symbol) -> bool {
|
||||
self.set.iter().any(|(s, _)| *s == symbol)
|
||||
}
|
||||
|
||||
pub fn is_represented(&self) -> Option<Layout<'a>> {
|
||||
if let Layout::Struct(&[]) = self.representation {
|
||||
None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue