A
(defun draw-triangle (size)
(let ((tri (and (> size 0)
(cons
(loop for x from 2 to (* size 2) collect "*")
(mapcar #'(lambda (x) (cons " " x)) (triangle-inner (- size 1)))))))
(and tri
(format t "~{~{~a~^ ~}~%~}" (reverse tri)))))
Size: a a a
A
(defun draw-triangle (size)
(let ((tri (and (> size 0)
(cons
(loop for x from 2 to (* size 2) collect "*")
(mapcar #'(lambda (x) (cons " " x)) (triangle-inner (- size 1)))))))
(and tri
(format t "~{~{~a~^ ~}~%~}" (reverse tri)))))
A
A
A
(defun triangle-inner (size)
(and (> size 0)
(cons
(loop for x from 2 to (* size 2) collect "*")
(mapcar #'(lambda (x) (cons " " x)) (triangle-inner (- size 1))))))
(defun draw-triangle (size)
(let ((tri (triangle-inner size)))
(and tri
(format t "~{~{~a~^ ~}~%~}" (reverse tri)))))
A
a
a
(qrsha qenj-gevnatyr
(u)(qbgvzrf (a (* 2
u))(sbezng g
"~i:@<~i{~2n~}~>~%"
(* 2 (1- (* 2 u)))
(vaps a)'#1=(* .
#1#))))
O
#!/usr/bin/emacs
or packaged into standalone narrow-purpose emacs builds. This is true for all good reasons. Lisp code is meant to be run in long-lived sessions, and it shines most at that.RR
/lib/ld*.so
- часть libc.n
RR
T
YK
T
YK
T
YK
РБ
n
(defun p^(n)(dotimes(a n)(format t"~vd~v@{~a~:*~}~%"(*(- n a 1)2)""(1+(* a 2))"* ")))
> (p^ 4)
*
* * *
* * * * *
* * * * * * *
NIL