14.1. Conses as Lists
Prev Chapter 14. Conses Next

14.1. Conses as Lists [sec_14-1-2]

14.1.1. Mapping Functions

14.1.1. Mapping Functions

Function EXT:MAPCAP. The function EXT:MAPCAP is like MAPCAN, except that it concatenates the resulting lists with APPEND instead of NCONC:

(EXT:MAPCAP function x1 ... xn) ≡
(APPLY #'APPEND (MAPCAR function x1 ... xn))

(Actually a bit more efficient that this would have been.)

Function EXT:MAPLAP. The function EXT:MAPLAP is like MAPCON, except that it concatenates the resulting lists with APPEND instead of NCONC:

(EXT:MAPLAP function x1 ... xn) ≡
(APPLY #'APPEND (MAPLIST function x1 ... xn))

(Actually a bit more efficient that this would have been.)


These notes document CLISP version 2.49Last modified: 2010年07月07日




Chapter 14. Conses Home Chapter 15. Arrays

AltStyle によって変換されたページ (->オリジナル) /