(&self, other: &Box<dyn Value>)
| 152 | } |
| 153 | |
| 154 | fn contains_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> { |
| 155 | for value in self.values.iter() { |
| 156 | if value.equals(other) { |
| 157 | return Ok(Box::new(BoolValue { value: true })); |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | Ok(Box::new(BoolValue::new_false())) |
| 162 | } |
| 163 | } |