additional list functions (range, map, filter, reduce, flatten) (#74)
also make the VM cope with reentrancy
This commit is contained in:
parent
2b924c3efb
commit
65645f410f
4 changed files with 341 additions and 47 deletions
|
@ -47,6 +47,13 @@ impl Value {
|
|||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn to_ref(&self) -> Option<RefId> {
|
||||
match self {
|
||||
Self::Ref(v) => Some(*v),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl From<()> for Value {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue