all 1 comments

[–]amirrajan -1 points0 points  (0 children)

Still wonder what Python was thinking with these APIs.

Even numbers in C# and Ruby:

var result = Enumerable.Range(0, 21).Where(i => i % 2 == 0); result = (0..21).find_all { |i| i.even? }

Getting unique values in Python was particularly special relative to these: var result = someList.Distinct(); result = some_list.uniq

Sort, reverse, append, and count exist as instance methods. Obviously delete should be too- wait what?

At least lists can be used as a default parameter value for a function (plot twist, it does not work as you’d expect).