Skip to content

Instantly share code, notes, and snippets.

@blad
Created August 22, 2020 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blad/7ed85f1f5b6d2d49fc6d79775b784355 to your computer and use it in GitHub Desktop.
Save blad/7ed85f1f5b6d2d49fc6d79775b784355 to your computer and use it in GitHub Desktop.
Ronin: Implement Append using user-space functions.
(def y ())
(defn identity (x) x)
(defn copy-list
(xs)
(map xs identity))
(defn append
(xs item)
(set (copy-list xs) (len xs) item))
(debug (append (append y 2) 1))
(debug y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment