Map range: Difference between revisions
Content deleted Content added
No edit summary |
|||
Line 518: | Line 518: | ||
=={{header|Ruby}}== |
=={{header|Ruby}}== |
||
{{trans|Python}} |
|||
<lang ruby>def map_range(a, b, s) |
<lang ruby>def map_range(a, b, s) |
||
(a1,a2), (b1, b2) = a, b |
(a1,a2), (b1, b2) = a, b |