mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 04:50:29 +00:00
use ctx
This commit is contained in:
@@ -358,7 +358,7 @@ sort_by_key :: proc(data: $T/[]$E, key: proc(E) -> $K) where ORD(K) {
|
||||
case a > b: return .Greater
|
||||
}
|
||||
return .Equal
|
||||
}, nil)
|
||||
}, ctx)
|
||||
}
|
||||
|
||||
reverse_sort_by_key :: proc(data: $T/[]$E, key: proc(E) -> $K) where ORD(K) {
|
||||
@@ -378,7 +378,7 @@ reverse_sort_by_key :: proc(data: $T/[]$E, key: proc(E) -> $K) where ORD(K) {
|
||||
case a > b: return .Less
|
||||
}
|
||||
return .Equal
|
||||
}, nil)
|
||||
}, ctx)
|
||||
}
|
||||
|
||||
@(require_results)
|
||||
|
||||
Reference in New Issue
Block a user