Talk:Loops/Wrong ranges: Difference between revisions

Content added Content deleted
Line 13: Line 13:


Following the Julia solution, I've just submitted an R solution that does not contain a loop. The task title makes me think that this is foul play, but I can't see anything in the task description that says that a loop must be used. Is this intentional? In other words, are the Julia and R solutions acceptable? --[[User:ReeceGoding|ReeceGoding]] ([[User talk:ReeceGoding|talk]]) 17:28, 22 June 2020 (UTC)
Following the Julia solution, I've just submitted an R solution that does not contain a loop. The task title makes me think that this is foul play, but I can't see anything in the task description that says that a loop must be used. Is this intentional? In other words, are the Julia and R solutions acceptable? --[[User:ReeceGoding|ReeceGoding]] ([[User talk:ReeceGoding|talk]]) 17:28, 22 June 2020 (UTC)

:No. Other than the title, there is no mention of loops anywhere in the task description. Sequences and loops are somewhat orthogonal anyway. If your language has some special syntax that is commonly used to generate sequences, then that is probably more interesting/useful than a slavish "do it with an explicit loop" example IMO. --[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]) 21:16, 22 June 2020 (UTC)