Method: Array#indices_of
- Defined in:
- lib/y_support/core_ext/array/misc.rb
#indices_of(other) ⇒ Object
Returns indices of elements of another array in this array (inverse of #values_at).
138 139 140 |
# File 'lib/y_support/core_ext/array/misc.rb', line 138 def indices_of other other.map { |e| index e } end |