Why not define `h` as follows?

```javascript
function h(k) { // `l` is closed over the outer scope
  …
}
```

So that you can just return `h` here instead of this anonymous function.