Quine: Difference between revisions

Jump to navigation Jump to search
m
Text replacement - "APL Press" to "APL Press"
m (Text replacement - "</source>" to "</syntaxhighlight>")
m (Text replacement - "APL Press" to "APL Press")
 
(2 intermediate revisions by 2 users not shown)
Line 7: Line 7:
       1⌽22⍴11⍴'''1⌽22⍴11⍴'''
       1⌽22⍴11⍴'''1⌽22⍴11⍴'''
</syntaxhighlight>
</syntaxhighlight>
This expression is one of the earliest examples of a quine within the APL community, being listed in a 1977 APL Press article.<ref>[https://cs.uwaterloo.ca/~shallit/aplnews3.pdf APL Press]</ref>


=== Modern update ===
=== Modern update ===


In 2019, [[Nick Nikolov]] proposed to shorten it using the [[commute]] operator:<ref>[https://chat.stackexchange.com/transcript/message/48380903#48380903 Transcript for 2019-01-06] – [[APL Orchard]].</ref>
In 2019, Nick Nikolov proposed to shorten it using the [[commute]] operator:<ref>[https://chat.stackexchange.com/transcript/message/48380903#48380903 Transcript for 2019-01-06] – [[APL Orchard]].</ref>
<syntaxhighlight lang=apl>
<syntaxhighlight lang=apl>
       1⌽,⍨9⍴'''1⌽,⍨9⍴'''
       1⌽,⍨9⍴'''1⌽,⍨9⍴'''

Navigation menu