[ prog / sol / mona ]

prog


cddr

20 2024-08-19 00:35

>>19
c[ad]r
first, second, nth
(defstruct (foo (:type list)) a b c) (foo-b '(1 2 3)) ;=> 2
destructuring-bind
variations on (loop for (x y) on '(1 2 3 4) by #'cddr)
(defun foo (a b c) b) (apply #'foo '(1 2 3))
(progv '(a b c) '(1 2 3) b)
assoc/getf, (defun foo (&key a b c) c) (apply #'foo '(:a 2 :c 3))

that's off the top of my head, as far how i've approached list structures. but i maybe missed one or two more at most, so i was wrong it's less than a dozen.

29


VIP:

do not edit these