additional list functions (range, map, filter, reduce, flatten) (#74)

also make the VM cope with reentrancy
This commit is contained in:
りき萌 2025-05-27 20:20:10 +02:00
parent 2b924c3efb
commit 65645f410f
4 changed files with 341 additions and 47 deletions

View file

@ -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 {