mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
Fix typo
This commit is contained in:
@@ -281,7 +281,7 @@ reduce :: proc(s: $S/[]$U, initializer: $V, f: proc(V, U) -> V) -> V {
|
|||||||
}
|
}
|
||||||
|
|
||||||
filter :: proc(s: $S/[]$U, f: proc(U) -> bool, allocator := context.allocator) -> S {
|
filter :: proc(s: $S/[]$U, f: proc(U) -> bool, allocator := context.allocator) -> S {
|
||||||
r := make([dynamic]S, 0, 0, allocator);
|
r := make([dynamic]U, 0, 0, allocator);
|
||||||
for v in s {
|
for v in s {
|
||||||
if f(v) {
|
if f(v) {
|
||||||
append(&r, v);
|
append(&r, v);
|
||||||
|
|||||||
Reference in New Issue
Block a user