Timeline for Balanced triplet brackets
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 23, 2016 at 10:53 | comment | added | Arnauld |
@Neil I'm personally not sure if s==(s=s.replace(...)) is really more readable, but I like the idea of not introducing an extra variable anyway.
|
|
Oct 23, 2016 at 10:49 | history | edited | Arnauld | CC BY-SA 3.0 |
rewritten without the S variable, as suggested by Neil
|
Oct 23, 2016 at 10:25 | comment | added | Neil |
That S/s mix was slightly confusing, perhaps f=s=>s==(s=s.replace(...))?!s:f(s) ?
|
|
Oct 22, 2016 at 11:48 | comment | added | Dada | @TonHospel Didn't thought of that, indeed.. thanks for pointing it out! (feel free to post it if you want by the way, or at least don't hold back because of me) | |
Oct 22, 2016 at 11:45 | comment | added | Ton Hospel |
@Dada That will consider 0 a BTBS. Use this 38 instead: perl -pe 's/<->|\(\+\)|{\|}|\[:]//&&redo;$_=/^$/'
|
|
Oct 22, 2016 at 11:33 | comment | added | Dada |
And 39 with perl : perl -lpe 's/<->|\(\+\)|{\|}|\[:]//&&redo;$_=!$_' .
|
|
Oct 22, 2016 at 11:17 | comment | added | Martin Ender | The same idea in Retina is 26 bytes (the first line just makes it a test suite): retina.tryitonline.net/… | |
Oct 22, 2016 at 11:13 | history | edited | Arnauld | CC BY-SA 3.0 |
saved 1 byte
|
Oct 22, 2016 at 11:01 | history | edited | Arnauld | CC BY-SA 3.0 |
saved 1 byte
|
Oct 22, 2016 at 10:54 | history | edited | Arnauld | CC BY-SA 3.0 |
saved 19 bytes
|
Oct 22, 2016 at 10:44 | history | answered | Arnauld | CC BY-SA 3.0 |