Last active
June 13, 2019 07:27
-
-
Save yonta/6007b9370918f5bfecdf21f9b65ab410 to your computer and use it in GitHub Desktop.
Lisp Sort
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
(let ((a (list 2 1))) | |
(sort a #'<) | |
a) | |
;; => (2) | |
(let ((a (list 1 2))) | |
(sort a #'<) | |
a) | |
;; => (1 2) | |
;; ちゃんとsort結果を束縛しような! | |
(let* ((a (list 2 1)) | |
(b (sort a #'<))) | |
b) | |
;; => (1 2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment