Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Since 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


And it was not, by the way, invented by Ursula K Leguin. I checked.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: