I was wondering how can I generate the following array using ranges in ruby
["00","00","01","01","02", "02", ...... "10", "10"]
I want to repeat each element twice thats the part that I am looking an answer for. I can generate single elements as below
("00".."10").to_a
I know I can do this using loops etc but I am looking for a simpler one line code
Thanks