Quine #1277
vh8t
started this conversation in
Show and tell
Quine
#1277
Replies: 2 comments
-
Two possibilities: String foo = "foo";
String foobar = foo.concat("bar");
String foobar2 = string::format("%s%s", foo, "bar"); Nicely done with the quine. Here is a single line one: import std::io; fn void main() => io::printfn("%sString q = \x60%s\x60;", q, q);String q = `import std::io; fn void main() => io::printfn("%sString q = \x60%s\x60;", q, q);`; |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'll leave this one here as well: import std::io; fn void main() => io::print($embed($$FILE)); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
quine made in c3, couldnt find any method to concat strings, tried
+
,,
and$concat
Beta Was this translation helpful? Give feedback.
All reactions