Timeline for Flippign Lettesr Aroudn
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 2, 2018 at 2:10 | history | edited | Shieru Asakoto | CC BY-SA 3.0 |
-4 Thanks @Shaggy
|
Feb 1, 2018 at 11:08 | comment | added | Shaggy |
32 bytes: s=>s.replace(/(.)(.)\b/g,"$2$1") (Or 34 bytes without grouping: s=>s.replace(/..\b/g,([x,y])=>y+x) )
|
|
Dec 28, 2017 at 10:08 | comment | added | l4m2 |
F=s=>s.replace(/(.)(.)(?!\w)/g,"$2$1") same length
|
|
Dec 28, 2017 at 10:02 | comment | added | Shieru Asakoto | @l4m2 Oh that's indeed true ;) (although I only see one space between every word) | |
Dec 28, 2017 at 9:55 | comment | added | l4m2 |
ab abc abcd abcde abcdef does ab_ , bc_ , cd_ , de_ , ___ , ef_ , ___
|
|
Dec 28, 2017 at 9:51 | comment | added | Shieru Asakoto |
@l4m2 BTW my original answer was s=>s.replace(/(.)(.)(\s|$)/g,"$2$1$3")
|
|
Dec 28, 2017 at 9:49 | comment | added | Shieru Asakoto |
@l4m2 But if there are more spaces then it will become a 38 for s=>s.replace(/(.)(.)( +|$)/g,"$2$1$3") .
|
|
Dec 28, 2017 at 9:48 | comment | added | l4m2 | Doesn't matter if there are more spaces, I think | |
Dec 28, 2017 at 9:46 | history | edited | Shieru Asakoto | CC BY-SA 3.0 |
-2 for only considering 1 space and add trailing space, add courtesy
|
Dec 28, 2017 at 9:38 | history | answered | Shieru Asakoto | CC BY-SA 3.0 |