#ECMAScript6, 104 bytes# ((d)=>{for(var a=0,c=Array,b=c;a<=d;a++)b=b.concat(c.apply(null,c(a)).map(e=>{return a}));return b})(10)
This is my first shot at code golf...I still want to get that 0.5x bonus. Any suggestions are welcomed!
#ECMAScript6, 104 bytes# ((d)=>{for(var a=0,c=Array,b=c;a<=d;a++)b=b.concat(c.apply(null,c(a)).map(e=>{return a}));return b})(10)
This is my first shot at code golf...I still want to get that 0.5x bonus. Any suggestions are welcomed!