v/vlib/v/fmt/tests/anon_fn_as_param_keep.vv

8 lines
147 B
V

pub fn reduce(a []int, iter fn (int, int) int, accum_start int) int {
iter(accum_start)
}
pub fn test_anon_fn_void(func fn ()) int {
return 0
}