Timeline for Repeat every other character in string starting with second character
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 1, 2020 at 0:18 | history | edited | RGS | CC BY-SA 4.0 |
added 8 characters in body
|
Feb 1, 2020 at 0:15 | comment | added | Jonathan Allan |
Oh, another 1 by distributing over the addition and reordering to avoid % being treated as a format instruction: c*(1+i%2) ->i%2*c+c (or c+i%2*c )
|
|
Feb 1, 2020 at 0:10 | comment | added | RGS | @JonathanAllan thanks for the tip! | |
Feb 1, 2020 at 0:10 | history | edited | RGS | CC BY-SA 4.0 |
Corrected user mentioned...
|
Feb 1, 2020 at 0:03 | comment | added | Jonathan Allan |
Save 2 with enumerate and 2 more by using a generator (dropping the [] ) - TIO
|
|
Jan 31, 2020 at 23:54 | history | answered | RGS | CC BY-SA 4.0 |