J, 34 bytes
(2*1#.=&'(2*1#.=&)+6*=&')+6*=&''''
##how
how
single quote
quoted program adjustment
| /
vvvvvvvvvvvvvvvv _____/___
(2*1#.=&'(2*1#.=&)+6*=&')+6*=&''''
^^^^^^^^ ^^^^^^^^^^
\ /
regular program
- Everything above a
^is part of the "regular program". - The rest is "the program quoted", but with one exception:
- The quoted program doesn't include the program's single quote characters
'
- The quoted program doesn't include the program's single quote characters
2*1#.=&'...'- Two times2*the sum of1#.the total number of times the input char matches a char in "the quoted program". One for the actual program char, one for its quoted twin.+6*=&''''- Plus six times+6*the1/0-indicator of whether the input char is equal to a single quote=&''''. This is the hardcoded knowledge that there are 6 single quotes in the program.
J, 34 bytes
(2*1#.=&'(2*1#.=&)+6*=&')+6*=&''''
##how
single quote
quoted program adjustment
| /
vvvvvvvvvvvvvvvv _____/___
(2*1#.=&'(2*1#.=&)+6*=&')+6*=&''''
^^^^^^^^ ^^^^^^^^^^
\ /
regular program
- Everything above a
^is part of the "regular program". - The rest is "the program quoted", but with one exception:
- The quoted program doesn't include the program's single quote characters
'
- The quoted program doesn't include the program's single quote characters
2*1#.=&'...'- Two times2*the sum of1#.the total number of times the input char matches a char in "the quoted program". One for the actual program char, one for its quoted twin.+6*=&''''- Plus six times+6*the1/0-indicator of whether the input char is equal to a single quote=&''''. This is the hardcoded knowledge that there are 6 single quotes in the program.
J, 34 bytes
(2*1#.=&'(2*1#.=&)+6*=&')+6*=&''''
how
single quote
quoted program adjustment
| /
vvvvvvvvvvvvvvvv _____/___
(2*1#.=&'(2*1#.=&)+6*=&')+6*=&''''
^^^^^^^^ ^^^^^^^^^^
\ /
regular program
- Everything above a
^is part of the "regular program". - The rest is "the program quoted", but with one exception:
- The quoted program doesn't include the program's single quote characters
'
- The quoted program doesn't include the program's single quote characters
2*1#.=&'...'- Two times2*the sum of1#.the total number of times the input char matches a char in "the quoted program". One for the actual program char, one for its quoted twin.+6*=&''''- Plus six times+6*the1/0-indicator of whether the input char is equal to a single quote=&''''. This is the hardcoded knowledge that there are 6 single quotes in the program.
J, 34 bytes
(2*1#.=&'(2*1#.=&)+6*=&')+6*=&''''
##how
single quote
quoted program adjustment
| /
vvvvvvvvvvvvvvvv _____/___
(2*1#.=&'(2*1#.=&)+6*=&')+6*=&''''
^^^^^^^^ ^^^^^^^^^^
\ /
regular program
- Everything above a
^is part of the "regular program". - The rest is "the program quoted", but with one exception:
- The quoted program doesn't include the program's single quote characters
'
- The quoted program doesn't include the program's single quote characters
2*1#.=&'...'- Two times2*the sum of1#.the total number of times the input char matches a char in "the quoted program". One for the actual program char, one for its quoted twin.+6*=&''''- Plus six times+6*the1/0-indicator of whether the input char is equal to a single quote=&''''. This is the hardcoded knowledge that there are 6 single quotes in the program.
J, 34 bytes
(2*1#.=&'(2*1#.=&)+6*=&')+6*=&''''
##how
(2*1#.=&'(2*1#.=&)+6*=&')+6*=&''''
^^^^^^^^ ^^^^^^^^^^
- Everything above a
^is part of the "regular program". - The rest is "the program quoted", but with one exception:
- The quoted program doesn't include the program's single quote characters
'
- The quoted program doesn't include the program's single quote characters
2*1#.=&'...'- Two times2*the sum of1#.the total number of times the input char matches a char in "the quoted program". One for the actual program char, one for its quoted twin.+6*=&''''- Plus six times+6*the1/0-indicator of whether the input char is equal to a single quote=&''''. This is the hardcoded knowledge that there are 6 single quotes in the program.
J, 34 bytes
(2*1#.=&'(2*1#.=&)+6*=&')+6*=&''''
##how
single quote
quoted program adjustment
| /
vvvvvvvvvvvvvvvv _____/___
(2*1#.=&'(2*1#.=&)+6*=&')+6*=&''''
^^^^^^^^ ^^^^^^^^^^
\ /
regular program
- Everything above a
^is part of the "regular program". - The rest is "the program quoted", but with one exception:
- The quoted program doesn't include the program's single quote characters
'
- The quoted program doesn't include the program's single quote characters
2*1#.=&'...'- Two times2*the sum of1#.the total number of times the input char matches a char in "the quoted program". One for the actual program char, one for its quoted twin.+6*=&''''- Plus six times+6*the1/0-indicator of whether the input char is equal to a single quote=&''''. This is the hardcoded knowledge that there are 6 single quotes in the program.
J, 34 bytes
(2*1#.=&'(2*1#.=&)+6*=&')+6*=&''''
##how
(2*1#.=&'(2*1#.=&)+6*=&')+6*=&''''
^^^^^^^^ ^^^^^^^^^^
- Everything above a
^is part of the "regular program". - The rest is "the program quoted", but with one exception:
- The quoted program doesn't include the program's single quote characters
'
- The quoted program doesn't include the program's single quote characters
2*1#.=&'...'- Two times2*the sum of1#.the total number of times the input char matches a char in "the quoted program". One for the actual program char, one for its quoted twin.+6*=&''''- Plus six times+6*the1/0-indicator of whether the input char is equal to a single quote=&''''. This is the hardcoded knowledge that there are 6 single quotes in the program.
J, 34 bytes
(2*1#.=&'(2*1#.=&)+6*=&')+6*=&''''
##how
(2*1#.=&'(2*1#.=&)+6*=&')+6*=&''''
^^^^^^^^ ^^^^^^^^^^
- Everything above a
^is part of the "regular program". - The rest is "the program quoted", but with one exception:
- The quoted program doesn't include the program's single quote characters
'
- The quoted program doesn't include the program's single quote characters
2*1#.=&'...'- Two times2*the sum of1#.the total number of times the input char matches a char in "the quoted program". One for the actual program char, one for its quoted twin.+6*=&''''- Plus six times+6*the1/0-indicator of whether the input char is equal to a single quote=&''''. This is the hardcoded knowledge that there are 6 single quotes in the program.