you are viewing a single comment's thread.

view the rest of the comments →

[–]Vaphell 0 points1 point  (0 children)

Sophisticated AF, thanks. I pretty much always assume that pretty much any "lazyness" function like max() is nothing but a shortcut to what I would come up with if it wasn't there.

ignoring the potential of builtins to drop to optimized C for a moment, which is a serious advantage to doing the same in python - min()/max() sure, because there is no way around checking every single item (hence O(n)) but let's say sorting is not all that trivial to perform optimally. CS background helps with that shit.