I am having trouble understanding the approach I need to take to collapse the list of functions and call them all with a specific argument.
This is what I was supposed to work for. I tried various options using eval , etc. Any pointers?
(mapcar (lambda (fn) (fn 'utf-8)) (list #'set-terminal-coding-system
When I run this, I just get "Character Function Definition: void: fn".
EDIT | So this works, but it seems odd to use apply when the above example passes functions with the syntax #'function-name .
(mapcar (lambda (fn) (apply fn '(utf-8))) '(set-terminal-coding-system set-keyboard-coding-system prefer-coding-system))
source share