Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

75%
+4 −0
Challenges Obligatory Quine Challenge

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 ...

posted 3y ago by Marshall Lochbaum‭

Answer
#1: Initial revision by user avatar Marshall Lochbaum‭ · 2021-04-19T12:49:34Z (over 3 years ago)
# [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).