(
env: &mut Environment,
expr: &IndexExpr,
titles: &[String],
object: &Vec<Box<dyn Value>>,
)
| 284 | } |
| 285 | |
| 286 | fn evaluate_collection_index( |
| 287 | env: &mut Environment, |
| 288 | expr: &IndexExpr, |
| 289 | titles: &[String], |
| 290 | object: &Vec<Box<dyn Value>>, |
| 291 | ) -> Result<Box<dyn Value>, String> { |
| 292 | let array = evaluate_expression(env, &expr.collection, titles, object)?; |
| 293 | let index = evaluate_expression(env, &expr.index, titles, object)?; |
| 294 | array.index_op(&index) |
| 295 | } |
| 296 | |
| 297 | fn evaluate_collection_slice( |
| 298 | env: &mut Environment, |
no test coverage detected
searching dependent graphs…