Paste number 53660: (sort) in CL

Paste number 53660: (sort) in CL
Pasted by: rindolf
7 months, 2 days ago
#lispcafe | Context in IRC logs
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

Ads absolutely not by Google

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