Talk:Greatest element of a list: Difference between revisions

Content added Content deleted
(Maybe it's better now?)
(added a comment about the run-time requirement.)
Line 4: Line 4:
:Quickly skimming the solutions I'd say that the vast majority of the examples support lists where the values aren't known until runtime. It's just a lot easier to demonstrate using a hard-coded list. Pretty much any of the examples that have a function that takes a list (or array or whatever)--whether it's built-in or homemade--will be able to use a runtime list. They just don't because that takes lots of extra stuff like some other form of input besides hard-coding. --[[User:Mwn3d|Mwn3d]] 17:57, 27 September 2011 (UTC)
:Quickly skimming the solutions I'd say that the vast majority of the examples support lists where the values aren't known until runtime. It's just a lot easier to demonstrate using a hard-coded list. Pretty much any of the examples that have a function that takes a list (or array or whatever)--whether it's built-in or homemade--will be able to use a runtime list. They just don't because that takes lots of extra stuff like some other form of input besides hard-coding. --[[User:Mwn3d|Mwn3d]] 17:57, 27 September 2011 (UTC)
:I just changed the wording a little bit. I don't think it changes the intent of the task (and it's probably what they meant anyway). --[[User:Mwn3d|Mwn3d]] 18:02, 27 September 2011 (UTC)
:I just changed the wording a little bit. I don't think it changes the intent of the task (and it's probably what they meant anyway). --[[User:Mwn3d|Mwn3d]] 18:02, 27 September 2011 (UTC)

:: I added an '''output''' section for the 3<sup>rd</sup> REXX example &nbsp; (for the run-time requirement). &nbsp; It does make this simple task a wee &nbsp; (or just a wee-wee) &nbsp; bit harder to read and understand the underlying program structure/logic; &nbsp; for one thing, you now have to show the user's input(s) &nbsp; (console/terminal/command line/parameters). &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 21:20, 24 February 2017 (UTC)