News for hackers. Stuff that matters.
Re:The 2,500 year old history of why Python’s all([]) return... by 8note on Friday August 25, 2023 @08:23PM (#37268688)
You could define an alternative All where where it means (at least one is true) && (for each n, n is true)

But is it useful?

Suppose I'm a bus driver and I ask "all aboard?"

I'd expect that if the answer is false, I'm missing somebody, and not that the bus is empty

There are no comments on this comment yet.