Timeline for Make some Alphabet Rain
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 11, 2017 at 0:12 | comment | added | Justin Mariner | @RickHitchcock Updated, thanks guys! | |
Oct 11, 2017 at 0:09 | history | edited | Justin Mariner | CC BY-SA 3.0 |
added 96 characters in body
|
Oct 10, 2017 at 21:28 | comment | added | Rick Hitchcock | @Neil, duh. Justin: What Neil said. : ) | |
Oct 10, 2017 at 21:24 | comment | added | Neil |
@RickHitchcock Can you not use parseInt(c,36)>i instead to save 2 bytes?
|
|
Oct 10, 2017 at 16:48 | history | edited | Justin Mariner | CC BY-SA 3.0 |
added 105 characters in body
|
Oct 10, 2017 at 15:16 | comment | added | Rick Hitchcock |
Ahh, good point. That can be fixed at the cost of 2 bytes: parseInt(c,36)-i>0
|
|
Oct 10, 2017 at 15:14 | comment | added | Justin Mariner |
@RickHitchcock That seems to infinite loop for an input string containing numbers: Try it online!. The idea of step-by-step changes to s is really nice, though.
|
|
Oct 10, 2017 at 14:26 | comment | added | Rick Hitchcock |
76 bytes (one trailing new line): f=(s,i=10)=>s.trim()&&s+'newline'+f(s.replace(/./g,c=>parseInt(c,36)-i?c:" "),i+1)
|
|
Oct 10, 2017 at 13:01 | history | answered | Justin Mariner | CC BY-SA 3.0 |