Timeline for I done did made a spaceship maw!
Current License: CC BY-SA 4.0
18 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 7, 2018 at 16:01 | comment | added | JayCe |
since IO is flexible you can probably just return a list of lines and do trimws(Map(gsub,"",strrep(" ",n-abs(n:-n)),w)) for 70 bytes. See for instance the two K submissions.
|
|
| Sep 7, 2018 at 8:25 | comment | added | J.Doe |
A lookbehind Map(gsub,"(?<=.)",strrep(" ",n-abs(n:-n)),w,F,T) nearly works for 72 bytes. Unfortunately I don't know how to cat out a list in <7 bytes...
|
|
| Sep 6, 2018 at 16:21 | comment | added | JDL |
I was convinced I could beat this with the collapse argument to paste but it just isn't happening...
|
|
| Sep 5, 2018 at 8:19 | comment | added | J.Doe | Great solution! | |
| Sep 5, 2018 at 8:19 | history | edited | J.Doe | CC BY-SA 4.0 |
deleted 29 characters in body
|
| Sep 5, 2018 at 7:27 | comment | added | digEmAll | Awesome ! 79 bytes using math :) | |
| Sep 4, 2018 at 17:58 | comment | added | J.Doe |
Ah yeah, thanks! write has a whole lot of parameters to misremember.
|
|
| Sep 4, 2018 at 17:58 | history | edited | J.Doe | CC BY-SA 4.0 |
added 29 characters in body
|
| Sep 4, 2018 at 17:57 | comment | added | Giuseppe |
should that be a 1 rather than a "" in write? I'm digging your use of Map!
|
|
| Sep 4, 2018 at 17:50 | history | edited | J.Doe | CC BY-SA 4.0 |
added 33 characters in body
|
| Sep 4, 2018 at 17:13 | history | edited | J.Doe | CC BY-SA 4.0 |
added 46 characters in body
|
| Sep 4, 2018 at 17:08 | comment | added | Giuseppe |
and you only use s once so you can just use it as an argument in write directly; bringing you down to 99 bytes
|
|
| Sep 4, 2018 at 17:04 | comment | added | Giuseppe |
you can also swap the <- to = in the statement Kevin mentions
|
|
| Sep 4, 2018 at 17:01 | comment | added | Kevin Cruijssen |
You can golf 1 byte by removing the space at in(r<-.
|
|
| Sep 4, 2018 at 16:56 | history | undeleted | J.Doe | ||
| Sep 4, 2018 at 16:56 | history | edited | J.Doe | CC BY-SA 4.0 |
added 11 characters in body
|
| Sep 4, 2018 at 16:53 | history | deleted | J.Doe | via Vote | |
| Sep 4, 2018 at 16:47 | history | answered | J.Doe | CC BY-SA 4.0 |