Small tidy in lambda compile_fn