4 ms·
I want this to be funny, but even the simplest of LISP is foreign to me. So I'm kinda like an English only speaking expat at a Hong-Kong Bar, where a local guy
by kelvin0 10y ago
I want this to be funny, but even the simplest of LISP is foreign to me.
So I'm kinda like an English only speaking expat at a Hong-Kong Bar, where a local guy tells me a (dirty?) joke and I laugh, even though I didn't quite get all the details.
Well done?
- davidnc 10y agoI thought I'd try writing a translation into Python. Not sure if it makes it any easier to follow, though... http://pastebin.com/yK1HrZJQ http://pastebin.com/yK1HrZJQ
- RodgerTheGreat 10y agoSince K was specifically invoked in the article, c: {[h;t]{(h;t)x}} / cons h: {x 0} / head t: {x 1} / tail n: {h y t/x} / nth p: h'-1_(~^:)t\ / print r: {{$[^y;x;c[h y;x]o t y]}[0N;x]} / reverse
- titanomachy 10y agoAnd it was not, by the way, invented by Ursula K Leguin. I checked.
- kelvin0 10y agoYou sir are a gentleman. Good job!