opensrdk_symbolic_computation/expression_array/
index.rs

1use crate::{Expression, ExpressionArray};
2use std::ops::Index;
3
4impl Index<&[usize]> for ExpressionArray {
5    type Output = Expression;
6
7    fn index(&self, indices: &[usize]) -> &Self::Output {
8        self.elems().get(indices).unwrap_or(&self.default)
9    }
10}