⚠️ Warning: This is a draft ⚠️

This means it might contain formatting issues, incorrect code, conceptual problems, or other severe issues.

If you want to help to improve and eventually enable this page, please fork RosettaGit's repository and open a merge request on GitHub.

==Task Clarification==

When the task description said numbers from 1..20, did it mean integers?

If not, the REXX example could also use numbers with decimal parts.

Some languages (like REXX) can handle both at the same time.

Also, it wasn't stated explicitly, but I assume the array could be fully populated, but without an element being equal to "20". -- [[User:Gerard Schildberger|Gerard Schildberger]] 02:54, 15 May 2012 (UTC) : I'd assume it meant integers; if not, the likelihood of encountering a “20” is too small. (Yes, it could be implemented otherwise, but what would be the point of that?) Another reason for assuming integer is that it says [1\ldots 20] and not [1.0\ldots 20.0] –[[User:Dkf|Donal Fellows]] 10:23, 15 May 2012 (UTC)

:: The point that I was asking for clarification. If the task was to use integers, then just say so. Otherwise, it's a matter of assumptions, and programs based on assumptions more often than not, make the wrong assumptions. In most languages, if the array is declared to be integer, then that's what's stored. Most examples generated their own arrays, so the programmer knows what to expect, so whatever the programmer assumed is what's stored in that array. There's no possibility of anything else stored there {except for a possible ''not defined/assigned'' or ''integer-out-of-range'', or some such, if the language supports those kind of things}. In any case, a program shouldn't blindly assume that there ''is'' a value of '''20''' in the array (no mention in the task was made about the array's size, although it did say it was "filled with...", and one could make the assumption that it implies more than none). The number of elements could be zero, five, or five thousand. I'd rather see a good example than one that made too many assumptions. 9.5 is still between 1 and 20. -- [[User:Gerard Schildberger|Gerard Schildberger]] 14:50, 15 May 2012 (UTC)