Skip to main content
12 events
when toggle format what by license comment
Dec 26, 2020 at 23:30 history edited caird coinheringaahing CC BY-SA 4.0
deleted 6 characters in body; edited title
Oct 10, 2017 at 23:30 answer added user62802 timeline score: 3
Jun 1, 2017 at 0:02 comment added Steve Bennett Yeah, that's awesome but doesn't work in JS.
May 31, 2017 at 14:45 comment added qqq I'm not sure about javascript, but in python you can do '-'*12
May 28, 2017 at 12:47 comment added Arnauld If you don't really need 12 identical characters but rather a 12-character string, you can also do 1e11+''.
May 28, 2017 at 12:46 history tweeted twitter.com/StackCodeGolf/status/868810694782799872
May 28, 2017 at 12:15 comment added Shaggy If you're going to be reusing repeat, you can alias it.
May 28, 2017 at 12:15 comment added Martin Ender @SteveBennett sometimes you only care about the string length and not the actual character, and many PPCG challenges allow you to use some ASCII character of your choice for output.
May 28, 2017 at 12:07 comment added Steve Bennett Cool - how often do you need a string of commas?
May 28, 2017 at 11:51 comment added Martin Ender For the special case of commas you can do Array(12)+'', which is shorter than the literal starting at 11 commas and then remains shorter than repeat.
May 28, 2017 at 11:46 comment added ASCII-only Don't think so but depending on the challenge you may be able to golf multiple runs to save bytes using e.g. RLE
May 28, 2017 at 11:26 history asked Steve Bennett CC BY-SA 3.0