Eh, &quot;implement X in Y lines&quot; for Y &lt; 10 is pretty much always a cheat. At least this cheat has solid computer science behind it; most such cheats boil down to &quot;import library; library.cheat()&quot;, or, for the particular &quot;implement a programming language&quot;, JavaScript &quot;eval&quot;.