Are you running that in the rails console or irb?

```1.9.3-p448 :001 > (0..10).step(5).flat_map {|i| i }
 => [0, 5, 10] 
```