A narcissist program is simple. It is related to a quine.
If the input is equal to it's source code, it prints a truthy value, if not it prints a falsy one. That is it.
- It can't read it's own file.
- This is code-golf, so the shortest answer wins.
- Hash functions are not allowed. This trivializes it into just string matching.
- The submission may be a function.
An example would be:
Your code most certainly won't be
someprogramhere, but you get the idea.