Post History
Scala 3, 80 bytes @main def m={val s="@main def m={val s=%c%s%1$c;printf(s,34,s)}";printf(s,34,s)} Try it in Scastie! The printf replaces %c and %1$c in string s with the quote character (34 i...
Answer
#1: Initial revision
# Scala 3, 80 bytes ```lang-scala @main def m={val s="@main def m={val s=%c%s%1$c;printf(s,34,s)}";printf(s,34,s)} ``` [Try it in Scastie!](https://scastie.scala-lang.org/Yn30WWh7RESx0YN4CK5kAw) The `printf` replaces `%c` and `%1$c` in string `s` with the quote character (34 in decimal), and replaces `%s` with the contents of `s`.