
Dec. 11, 2019
1:54 p.m.
On Thu, Dec 12, 2019 at 12:53:26AM +1300, Greg Ewing wrote:
On 11/12/19 9:45 pm, Steven D'Aprano wrote:
But that's not what happens if you call `first(iterable)` multiple times. Calling it once is fine, but people will call it multiple times.
Would it help if it were called "one" instead of "first"?
Only in the sense that if I saw a function called "one", I would have absolutely no idea whatsoever what it did, so I would be forced to read the docs, which hopefully would explicitly document the two different kinds of behaviour. -- Steven