ta0kira / zeolite

Zeolite is a statically-typed, general-purpose programming language.
Apache License 2.0
18 stars 0 forks source link

Implement a sorting algorithm. #168

Closed ta0kira closed 3 years ago

ta0kira commented 3 years ago

Ideally, stable with worst-case O(n log n) performance and O(1) memory. The memory requirement is flexible, since no deep copies will be made.

ta0kira commented 3 years ago

Actually, I think O(1) storage takes priority over stability, since buffers of arbitrary size aren't a part of the base.

ta0kira commented 3 years ago

I guess this really needs to be in lib/container anyway, since lib/util doesn't have a mutable random-access container.