Fix bug in find_indices.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user