Paste number 53660: (sort) in CL

Paste number 53660: (sort) in CL
Pasted by: rindolf
When:4 years, 1 month ago
Share:Tweet this! | http://paste.lisp.org/+15EK
Channel:#lispcafe
Paste contents:
Raw Source | XML | Display As
(let* ((mylist (list 10 5 20 9))
       (sorted (sort mylist #'<)))
  (format t "mylist is: ~a~%" mylist)
  (format t "sorted is: ~a~%" sorted))
; Prints:
; mylist is: (10 20)
; sorted is: (5 9 10 20)

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.