
17 Mar
2016
17 Mar
'16
12:48 a.m.
On 17/03/16 5:27 pm, Manuel Gómez wrote:
I'm not necessarily proposing this, but would it not be also reasonable for this to read "the list terminates when the current element equals e3 or the next element would be greater than e3"? It's slightly more wordy, but it captures the intuition that [a,b..c] ends at c.
From experience in other programming languages, I don't have that intuition. Indeed, from experience in Haskell, I don't expect [a,b..c] to end at c. [1,3..6] ends at 5, not 6.