Talk:Brace expansion using ranges: Difference between revisions
Content deleted Content added
(5 intermediate revisions by 2 users not shown) | |||
Line 15:
: Perhaps zsh is just not a sufficiently well-defined or consistently implemented target for such a task ?
: Do you know of an arguably canonical implementation of zsh (or some other widely used shell), with well-defined and consistent enumeration rules which we could formally summarize and illustrate here ? [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 18:07, 28 September 2021 (UTC)
: PS I am slow at the best of times, but I still haven't quite understood the macOS zsh {1..6..-2} -> [5,3,1] logic, which I hadn't noticed before ... : [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 18:12, 28 September 2021 (UTC)
: Ah, I see. Starting at one, with intervals of 2, and the whole sequence reversed. [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 18:15, 28 September 2021 (UTC)
::I have added F# based on this discussion, and see that Python has been added using the other possible meaning of flip. No other solutions currently have examples where the meaning of flip is ambiguous. The task description needs updating to: disambiguate flip; include appropriate examples of flipped ranges and a warning added that the task description has changed and solutions may need modifying.--[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 13:55, 6 October 2021 (UTC)
:::Thanks – that's very helpful.
:::What's the best tag or other method for drawing attention to an additional test,
:::and warning that modifications may be needed ?
:::[[User:Hout|Hout]] ([[User talk:Hout|talk]]) 20:25, 6 October 2021 (UTC)
::::Perhaps see Dijkstra's algorithm.--[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 16:10, 7 October 2021 (UTC)
|