ãã®éãã¹ã£ãç©
[-10..10].map{|i| p Date.today + i }
ã£ã¦ãæ¸ãã¦
- 10ãã+10ã¾ã§ã®æ¥ä»ãarrayã§è¿ããã¨ãããã¨ã©ã¼ã«ãªã£ãã
(-10..10).map{|i| p Date.today + i }
ãããªãã¨é§ç®ããããRangeã[]ã§å²ãã§ãããArrayã®ä¸èº«ãmapããäºã«ãªã£ã¦iã«ã¯Rangeãå ¥ãããã