728x90
728x170
;; Comparison
CG-USER(38): (funcall #'+ 1 2 3)
6
CG-USER(39): (apply #'+ '(1 2 3))
6
CG-USER(40): (reduce #'+ '(1 2 3))
6
Comparison among FUNCALL and APPLY and REDUCE.
Keep in mind that you should write only numbers when you use FUNCALL with #'(arithmetic operator).
728x90
그리드형(광고전용)
'Programming > LISP (CL)' 카테고리의 다른 글
[Textbook] Common Lisp: A Gentle Introduction to Symbolic Computation (0) | 2017.08.13 |
---|---|
Destructive Operations (0) | 2017.06.06 |