I made a list of functions. (caar flist) is a function according to functionp. But Emacs says invalid function. How can i use it?
(setq flist '((< +) (> -)))
--> ((< +) (> -))
(caar flist)
--> <
(functionp (caar flist))
--> t
((caar flist) 1 3)
--> invalid function (caar flist)
C-h i g (elisp)Calling Functionsfoo. Because of that, there needs to be more than just the syntax(foo ...)as we need to distinguish between calling the function of that name, or evaluating the variablefooto a function value and calling that. So(foo ...)only ever calls the function by that name, whilefuncallandapplycan be used to call functions stored as other values.invalid function (caar flist)is not saying that(caar flist)doesn't evaluate to a function, but rather that the form(caar flist)itself is not a function (as it's actually a list of two symbols).