Finds the index of the first occurrence of a given value. @param value [Object] The value to be compared. @return [Integer] The index of the first occurrence of a given value on found, -1 on not found. @since 12.0.0
(value)
| 38 | # |
| 39 | # @since 12.0.0 |
| 40 | def index(value) |
| 41 | value = Scalar.resolve(value, value_data_type) |
| 42 | compute("index", options: {value: value}).value |
| 43 | end |
| 44 | |
| 45 | private |
| 46 | def compute(name, options: nil) |