How to use array for tile map

I want to do it like how @richard made it in a stream