6 Oct
2016
6 Oct
'16
4:45 p.m.
For now there are many usefull builtin functions like "any", "all", etc. I'd like to propose a new builtin function "equal". It should accept iterable, and return True if all items in iterable are the same or iterable is emty. That's quite popular problem, there is a discussion of how to perform it on stackoverflow ( http://stackoverflow.com/questions/3844801/check-if-all-elements-in-a-list-a...) - all suggestions are either slow or not very elegant. What do you think about it?
2730
Age (days ago)
2731
Last active (days ago)
13 comments
9 participants
participants (9)
-
Chris Angelico
-
Ethan Furman
-
Filipp Bakanov
-
Mark Lawrence
-
Nick Coghlan
-
Paul Moore
-
Sjoerd Job Postmus
-
Steven D'Aprano
-
אלעזר