Post History
BQN, 20 bytesSBCS ∾2/0‿8⊏↓"∾2/0‿8⊏↓""" Run online! BQN's strings escape double quotes by doubling them, so that the string used to start with only contains a single quote, although the output ...
Answer
#1: Initial revision
# [BQN](https://mlochbaum.github.io/BQN/), 20 bytes<sup>[SBCS](https://github.com/mlochbaum/BQN/blob/master/commentary/sbcs.bqn)</sup> ``` ∾2/0‿8⊏↓"∾2/0‿8⊏↓""" ``` [Run online!](https://mlochbaum.github.io/BQN/try.html#code=4oCiU2hvdyBxIOKGkCDiiL4yLzDigL844oqP4oaTIuKIvjIvMOKAvzjiio/ihpMiIiIKCuKAokJRTuKKuOKJoSBxICAgIyBEb2VzIGl0IG1hdGNoIGl0c2VsZiBldmFsdWF0ZWQgaW4gQlFOPw==) BQN's strings escape double quotes by doubling them, so that the string used to start with only contains a single quote, although the output needs to have four quote characters. This also means that the source string is displayed with lots of quotes in the REPL. ``` ∾2/0‿8⊏↓"∾2/0‿8⊏↓""" "∾2/0‿8⊏↓""" # Source for the function, followed by a quote ↓ # All suffixes 0‿8⊏ # Suffixes 0 and 8: all, and the last character 2/ # Copy each twice ∾ # Join it together ``` Documentation: [Suffixes](https://mlochbaum.github.io/BQN/doc/prefixes.html) and [Join](https://mlochbaum.github.io/BQN/doc/join.html).