ecl/src/cmp
Daniel Kochmański a04b6ff8b8 cmp: mapcar: evaluate function only once
When function is a closure, all lexical environment were reinitialized
on each function call, because it was expanded multiple times. Do it
only once and use result in funcall. Fixes #17.

Signed-off-by: Daniel Kochmański <dkochmanski@turtle-solutions.eu>
2015-07-16 07:52:52 +02:00
..
cmparray.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpbind.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpblock.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpc-inliner.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpc-machine.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpc-wt.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpcall.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpcatch.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpcbk.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpclos.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpct.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpdefs.lsp Include the current directory in the list of search paths for the C compiler 2010-10-06 09:48:35 +02:00
cmpenv-api.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpenv-declaim.lsp The ignored variables warning is now a style warning. Similar to a warning about ignored forms without side effect, which is a compiler note. 2012-12-18 21:29:03 +01:00
cmpenv-declare.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpenv-fun.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpenv-proclaim.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpeval.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpexit.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpffi.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpflet.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpform.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpfun.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpglobals.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpif.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpinline.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmplam.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmplet.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmploc.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpmac.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpmain.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpmap.lsp cmp: mapcar: evaluate function only once 2015-07-16 07:52:52 +02:00
cmpmulti.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpname.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpnum.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpopt-bits.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpopt-clos.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpopt-cons.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpopt-constant.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpopt-printer.lsp Fix further uses of CONSTANTP+EVAL, replacing them with CONSTANT-FORM-VALUE and using the environment. 2013-01-11 22:55:49 +01:00
cmpopt-sequence.lsp Implemented EXT:TRULY-THE and made THE expand to either EXT:TRULY-THE or EXT:CHECKED-VALUE depending on the optimization settings. 2011-12-31 19:37:13 +01:00
cmpopt-type.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpopt.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpos-features.lsp Added a 'machine' object that represents the features of a cross compilation target in the compiler. Inline forms now are created with one such machine on mind, and recreated if the machine changes. 2013-06-02 22:49:54 +02:00
cmpos-run.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmppackage.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmppolicy.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpprop.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpspecial.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpstack.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpstructures.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmptables.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmptag.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmptop.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmptype-arith.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmptype-assert.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmptype-prop.lsp In type propagators, the function name is rarely use: declare it ignorable 2012-12-18 21:37:53 +01:00
cmptype.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmptypes.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmputil.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpvar.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
cmpwt.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
defsys.lsp.in cosmetic: untabify 2015-06-21 14:38:20 +02:00
load.lsp.in Fixed order of loading files 2013-06-08 22:24:14 -07:00
proclamations.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00
sysfun.lsp cosmetic: untabify 2015-06-21 14:38:20 +02:00