Adding support for lambdas in `apply`, this also adds lambda support to `map` and `for-each`