Skip to main content
6 events
when toggle format what by license comment
Jul 12, 2017 at 9:05 comment added numbermaniac #&@@Date[]-#&/@0~Range~120& will save you two bytes, but then making it a function requires adding the & on the end (which I think yours needs anyway), so -1 byte in total.
Aug 12, 2016 at 18:13 comment added ktm @MartinEnder Thanks for the feedback! I should have caught Minus being list able, minor mental lapse, but the other tips are much appreciated!
Aug 11, 2016 at 13:38 comment added Martin Ender Welcome to PPCG! You don't need to use a map here since subtraction is threaded over lists automatically. And -Range@121+1 saves a byte over the zero-based list. And #&@@ a byte over [[1]]. That said, unless stated otherwise in the challenge, all submissions have to be functions or full programs, and this code is merely a snippet/expression. The shortest fix would be making it an unnamed function by appending &.
Aug 11, 2016 at 13:16 review First posts
Aug 11, 2016 at 13:18
Aug 11, 2016 at 13:13 comment added Addison Crump Welcome to PPCG!
Aug 11, 2016 at 13:13 history answered ktm CC BY-SA 3.0