Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Revisions

3 of 3
Commonmark migration

Red, line-length: 10, 49 bytes

s: [prin [
 "s:"
 mold s
 "do s"
]] do s

Try it online!

This in fact is a Rebol quine

Explanation: Red/Rebol's mold follows the coding style of putting 4 spaces offset.

s: [prin [ ; s is a block; print the following: 
 "s:" ; literal "s:"
 mold s ; the representation of the block itself - all between []
 "do s" ; literal "do s"
]] do s ; evaluate the block
Galen Ivanov
  • 21.5k
  • 3
  • 26
  • 62

AltStyle によって変換されたページ (->オリジナル) /