Skip to main content
Saved a few bytes with a more ARBLE-y solution
Source Link
ATaco
  • 11.2k
  • 28
  • 78

ARBLE, 2222 16 bytes

list"list%q|n%%n"|n%n(f%f)"(f%%f)%q"

A twist onEssentially the normal Lualua quine of s="s=%qprint(s:format(s))"print(s:format(s)) taking advantage of ARBLE's extensions.

Creates a list containing only Takes the function "list%q|n%%n"f%f, (which acts as f:format(f)) and then maps overcalls it with the functionformat string n=>n%n"(f%%f)%q, which formatswhere %q escapes the string with itself, then it's implicitly outputprovided argument.

Try it online!Try it online!

ARBLE, 22 bytes

list"list%q|n%%n"|n%n

A twist on the normal Lua quine of s="s=%qprint(s:format(s))"print(s:format(s)) taking advantage of ARBLE's extensions.

Creates a list containing only "list%q|n%%n", then maps over it with the function n=>n%n, which formats the string with itself, then it's implicitly output.

Try it online!

ARBLE, 22 16 bytes

(f%f)"(f%%f)%q"

Essentially the lua quine of s="s=%qprint(s:format(s))"print(s:format(s)). Takes the function f%f (which acts as f:format(f)) and then calls it with the format string "(f%%f)%q, where %q escapes the provided argument.

Try it online!

Source Link
ATaco
  • 11.2k
  • 28
  • 78

ARBLE, 22 bytes

list"list%q|n%%n"|n%n

A twist on the normal Lua quine of s="s=%qprint(s:format(s))"print(s:format(s)) taking advantage of ARBLE's extensions.

Creates a list containing only "list%q|n%%n", then maps over it with the function n=>n%n, which formats the string with itself, then it's implicitly output.

Try it online!