user=> (filter (comp not nil?) '(a nil b nil c nil d)) (a b c d)]]>
随時更新.
Common Lisp | Scheme | 備考 |
---|---|---|
atom | なし | (not (pair? obj))を使う |
consp | pair? | |
dolist | for-each | 記法は異なる |
mapcan | append-map! | SRFI 1 |
mapcar | map | |
multiple-value-bind | receive | SRFI 8, library syntax |
null | null? | |
nth | list-ref | |
nthcdr | list-tail | SRFI 1ではdrop |
progn | begin | |
rplaca | set-car! | |
rplacd | set-cdr! | |
setq | set! |