array.rb: add `Array#entries` as an alias to `Array#to_a`.

The performance of `Enumerable#entries` are significantly slower than
`Array#to_a`.
parent 2a280a8f
......@@ -276,4 +276,5 @@ class Array
def to_a
self
end
alias entries to_a
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment