1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
package odinfmt_test main :: proc() { sort.sort(sort.Interface{len = proc(it: sort.Interface) -> int { c := 2 }, less = proc(it: sort.Interface, i, j: int) -> bool { b := 1 }, swap = proc(it: sort.Interface, i, j: int) { a := 2 c := 3 }, collection = &polygon, }) }