Update the `lambdas` example to remove a singleton variable warning