Use bracket notation in `map` function