Skip to main content
18 events
when toggle format what by license comment
Oct 22, 2018 at 14:07 comment added guest271314 87 bytes (n=999)=>[...Array(n)].map(_=>n+=9).filter(_=>/0/.test(_)&eval([..._+''].join`+`)==9)
Oct 15, 2018 at 22:56 comment added Shaggy 83 bytes. Although you should either add _=> to the beginning to make it a function or make this a REPL solution.
Oct 15, 2018 at 20:01 history edited Alion CC BY-SA 4.0
Outgolfed previous attempt
Oct 15, 2018 at 19:32 history edited Alion CC BY-SA 4.0
Outgolfed previous attempt
Oct 15, 2018 at 19:12 history edited Alion CC BY-SA 4.0
Outgolfed previous attempt; community improvements
Oct 15, 2018 at 18:16 comment added ETHproductions If you use .map() only to generate the range, and keep the filtering separate, you can save 8 bytes: Try it online!
Oct 15, 2018 at 16:26 history edited Alion CC BY-SA 4.0
Fix explanation
Oct 15, 2018 at 16:12 history edited Alion CC BY-SA 4.0
Outgolfed previous attempt
Oct 15, 2018 at 15:41 comment added Kevin Cruijssen Also, I'm pretty sure the || can be | in your answer.
Oct 15, 2018 at 15:34 history edited Alion CC BY-SA 4.0
Community improvements
Oct 15, 2018 at 15:32 comment added Alion @KevinCruijssen Whoops! No clue how I missed that space there. Also, the eval trick is nuts, thanks a bunch for that one.
Oct 15, 2018 at 15:29 comment added Kevin Cruijssen You can remove the space at (_, i) to save a byte, and s[0]+s[1]+s[2]+s[3] can be eval(s.join`+`) to save an additional 4 bytes.
Oct 15, 2018 at 15:23 history edited Alion CC BY-SA 4.0
Outgolfed previous attempt
Oct 15, 2018 at 15:08 history edited Alion CC BY-SA 4.0
Community improvements
Oct 15, 2018 at 15:05 comment added Luis felipe De jesus Munoz .map(a=>+a) instead .map(Number) saves another byte
Oct 15, 2018 at 15:03 comment added Luis felipe De jesus Munoz [...Array(9e3)] instead Array(9e3).fill() saves 2 bytes
Oct 15, 2018 at 14:49 history edited Alion CC BY-SA 4.0
Outgolfed previous attempt
Oct 15, 2018 at 14:43 history answered Alion CC BY-SA 4.0