Created
August 22, 2020 19:18
-
-
Save blad/7ed85f1f5b6d2d49fc6d79775b784355 to your computer and use it in GitHub Desktop.
Ronin: Implement Append using user-space functions.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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