Post History
APL(Dyalog Extended), 32 bytes SBCS {1=≢⍵:⍵⋄0~⍨,⍉↑∇¨↓2 ¯1⍴⍵,0/⍨2|≢⍵} Try it on APLgolf! A dfn submission which takes a string as input. I thought this would be much shorter, but it's only a s...
Answer
#1: Initial revision
# [APL(Dyalog Extended)][1], <sup><s></s></sup>32 bytes <sup>[SBCS][2]</sup> ``` {1=≢⍵:⍵⋄0~⍨,⍉↑∇¨↓2 ¯1⍴⍵,0/⍨2|≢⍵} ``` [Try it on APLgolf!](https://razetime.github.io/APLgolf/?h=AwA&c=qza0fdS56FHvVisgftTdYlD3qHeFzqPezkdtEx91tB9a8ahtspHCofWGj3q3AFXoGOgD5Y1qIHpqAQ&f=AwA&i=S1NQdw6JDPIPUOdKU1B39Y90DvHzCwjyBHODQv1d/dyCXR3dfINcPELUAQ&r=tio&l=apl-dyalog-extended&m=dfn&n=f) [1]: https://github.com/abrudz/dyalog-apl-extended [2]: https://github.com/abrudz/SBCS A dfn submission which takes a string as input. I thought this would be much shorter, but it's only a small improvement over unicode.