| 3478 | } |
| 3479 | |
| 3480 | Value Value::get(ArrayIndex index, const Value &defaultValue) const { |
| 3481 | const Value *value = &((*this)[index]); |
| 3482 | return value == &nullSingleton() ? defaultValue : *value; |
| 3483 | } |
| 3484 | |
| 3485 | bool Value::isValidIndex(ArrayIndex index) const { return index < size(); } |
| 3486 |