inline lambda with parameters