Use named local funs instead of inline anonymous funs.