15
0
Task
You will be given a string in the input consisting only of the characters from a
to z
, i.e. the input will match the regex /^[a-z]*$/
.
Your output should be a complete program in the same language, whose source code contains the input, and is a proper quine.
Example
Your program would receive the input abc
and output:
...abc...
The above should be a complete program in the same language which takes no input and outputs:
...abc...
i.e. it outputs itself.
Scoring
This is code-golf. Shortest answer in bytes wins.
3Hmm.. So like a 'quat' (quine + cat)? – Matthew Roh – 2017-05-02T13:10:29.340