How To Use Lambdas In R