Fix bug in find_indices.

This commit is contained in:
Danila Fedorin 2020-12-07 22:49:03 -08:00
parent 15e94c0286
commit aae61f796d

View File

@ -35,7 +35,7 @@ class Array(T)
end end
def find_indices def find_indices
into = [] of T into = [] of Int32
each_with_index do |v, i| each_with_index do |v, i|
into << i if yield v into << i if yield v
end end