Fix bug in find_indices.
This commit is contained in:
parent
15e94c0286
commit
aae61f796d
|
@ -35,7 +35,7 @@ class Array(T)
|
|||
end
|
||||
|
||||
def find_indices
|
||||
into = [] of T
|
||||
into = [] of Int32
|
||||
each_with_index do |v, i|
|
||||
into << i if yield v
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user