VM
Size: a a a
VM
V(
V(
VM
V(
PG
(defun goal (a b c &rest r)
(cons (list a b c)
(if (null r)
'()
(apply #'goal (cons b (cons c r))))))
ХЛ
(defun goal (a b c &rest r)
(cons (list a b c)
(if (null r)
'()
(apply #'goal (cons b (cons c r))))))
PG
((1 2 3)
(2 3 4)
(3 4 5)
(4 5 6))
(1 2 3 4 5 6)
A
A
A
(define (sliding-lists my-list count)
(unfold (lambda (x) (= count (first x)))
(lambda (x) (second x))
(lambda (x) (list (+ (first x) 1) (cdr (second x))))
(list 0 my-list)))
ХЛ
A
(define (sliding-map func list window)
(apply map func (sliding-lists list window)))
A
ХЛ
ХЛ
AE
VL
ХЛ
(defun test (a &rest r)
(let ((b (first r)) (c (second r)))
`((,a ,b ,c) ,@(when (third r) (apply #'test r)))))
V(