You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorting is really required. We can have a method in Sequence that sorts the sequence, or a method in List that sorts it in-place, or both (both!)
There are number of design choices:
Should the sort be stable? (We can provide both, but that seems unnecessary. I think most scripting languages just have stable sort - JS, Python, ...)
Should we provide in-place sort (possible only for lists), or not in-place (can be general in Sequence)? As I said, it seems reasonable to have both (Python does that - it has both list.sort() (in-place) and sorted() (not)).
The text was updated successfully, but these errors were encountered:
Sorting is really required. We can have a method in
Sequence
that sorts the sequence, or a method inList
that sorts it in-place, or both (both!)There are number of design choices:
Sequence
)? As I said, it seems reasonable to have both (Python does that - it has bothlist.sort()
(in-place) andsorted()
(not)).The text was updated successfully, but these errors were encountered: