>>106970501
no idea if this is good odin or not https://godbolt.org/z/7Yb6McY31
package main
import "core:slice"
import "core:fmt"
example :: proc(arr: []string ) -> []string {
res := slice.filter(arr[:], proc(i : string ) -> bool { return len(i) > 5;})
slice.reverse(res[:])
return res
}
main :: proc() {
cities := []string{ "amsterdam", "berlin", "tokyo"}
Comment too long. Click here to view the full text.