added_back_where

This commit is contained in:
TheRadischen
2026-08-16 12:58:23 +02:00
parent 3f851d2b02
commit 4c945c995a

View File

@@ -13,7 +13,7 @@ Sort_Kind :: enum {
Cmp,
}
_stable_sort_general :: proc(data: $T/[]$E, call: $P, $KIND: Sort_Kind) {
_stable_sort_general :: proc(data: $T/[]$E, call: $P, $KIND: Sort_Kind) where (ORD(E) && KIND == .Ordered) || (KIND != .Ordered) #no_bounds_check {
less :: #force_inline proc(a, b: E, call: P) -> bool {
when KIND == .Ordered {
return a < b