(&mut self, n: usize)
| 54 | let b = self.pop()?; let a = self.pop()?; Ok((a, b)) |
| 55 | } |
| 56 | #[inline] pub(crate) fn pop_n(&mut self, n: usize) -> Result<Vec<Val>, VmErr> { |
| 57 | let at = self.stack.len().checked_sub(n).ok_or(cold_runtime("stack underflow"))?; |
| 58 | Ok(self.stack.split_off(at)) |
| 59 | } |
| 60 | |
| 61 | /* Materialise an iterable into Vec<Val> for `*args` positional spread. */ |
| 62 | pub(crate) fn iter_to_vec_for_spread(&mut self, v: Val) -> Result<Vec<Val>, VmErr> { |
no test coverage detected