Actions
Feature #10365
closed`Rational#to_a` and `Array#to_r`
Feature #10365:
`Rational#to_a` and `Array#to_r`
Status:
Rejected
Assignee:
-
Target version:
-
Description
I guess people would want to extract the numerator and the denominator of an array. to_a would perhaps be a good name:
It also might be useful if Array#to_r were provided as an alternative way to create a rational from an array:
This would be equivalent to Rational(*[4, 6]).
Actions