Quine: Difference between revisions

Content added Content deleted
(→‎{{header|Prog8}}: Add implementation.)
(Add Odin example)
Line 3,086: Line 3,086:
(newline included)
(newline included)
<syntaxhighlight lang="ocaml">(fun s -> Printf.printf "%s%S;;\n" s s) "(fun s -> Printf.printf \"%s%S;;\\n\" s s) ";;</syntaxhighlight>
<syntaxhighlight lang="ocaml">(fun s -> Printf.printf "%s%S;;\n" s s) "(fun s -> Printf.printf \"%s%S;;\\n\" s s) ";;</syntaxhighlight>

=={{header|Odin}}==

<syntaxhighlight lang="odin">package quine

import "core:fmt"

main :: proc() {
q := `package quine

import "core:fmt"

main :: proc() {{
q := %c%s%c
fmt.printf(q, 96, q, 96)
}
`
fmt.printf(q, 96, q, 96)
}
</syntaxhighlight>


=={{header|Oforth}}==
=={{header|Oforth}}==