(&self, xs: &[Val], ys: &[Val], depth: usize)
| 386 | } |
| 387 | |
| 388 | fn seq_lt_d(&self, xs: &[Val], ys: &[Val], depth: usize) -> Result<bool, VmErr> { |
| 389 | if depth > CMP_DEPTH_MAX { return Err(cold_depth()); } |
| 390 | for (&x, &y) in xs.iter().zip(ys.iter()) { |
| 391 | if eq_vals_with_heap(x, y, &self.heap) { continue; } |
| 392 | return self.lt_vals_d(x, y, depth + 1); |
| 393 | } |
| 394 | Ok(xs.len() < ys.len()) |
| 395 | } |
| 396 | |
| 397 | /* Item presence in list/tuple/dict/set, or substring in string. Non-iterable container raises TypeError. */ |
| 398 | pub fn contains(&self, container: Val, item: Val) -> Result<bool, VmErr> { |
no test coverage detected