Fix closure to use new notation

This is the new syntax for closures that take their argument by immutable ref