Spaced

From Esolang
Jump to navigation Jump to search

Spaced is an esoteric subset of JavaScript. Let s be the code interleaved with spaces, and define f:

f = (...a) => { let [$, _] = a; return eval(s) }

Then the function f is called with the command line arguments, and the return value is outputted.

Example programs

Hello, world!

(q="Helo, Wrd!")[1]+q[3]+q[5]+q[5]+q[7]+q[9]+q[9+2]+q[9+4]+q[7]+q[9+6]+q[5]+q[9+8]+q[9+9+1]

Implementation

See also