fixed function calls, added array example

This commit is contained in:
JOLIMAITRE Matthieu 2022-06-01 04:35:42 +03:00
parent fe99fddc29
commit cefff00db3
5 changed files with 81 additions and 11 deletions

View file

@ -100,13 +100,6 @@ impl Value {
}
}
pub fn as_object_mut(&mut self) -> Option<&mut HashMap<String, Value>> {
match self {
Self::Object(h) => Some(h),
_ => None,
}
}
pub fn as_function(&self) -> Option<&Function> {
match self {
Self::Function(function) => Some(function),