Index finite lists of positive integers: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: added wording to the REXX section header.) |
m (align functions in the task's requirements.) |
||
Line 8: | Line 8: | ||
;Task: |
;Task: |
||
Implement such a mapping: |
Implement such a mapping: |
||
:* write a function ''rank'' which assigns an integer to any finite, arbitrarily long list of arbitrary large positive integers. |
:* write a function ''rank'' which assigns an integer to any finite, arbitrarily long list of arbitrary large positive integers. |
||
:* write a function ''unrank'' which is the ''rank'' [[wp:inverse function| <u>inverse function</u>]]. |
:* write a function ''unrank'' which is the ''rank'' [[wp:inverse function| <u>inverse function</u>]]. |
||