elisp - How to add a common prefix/suffix to a list of strings? -


how add common prefix/suffix list of strings? example:

from ("abc" "123" "xy")

to ("pre_abc" "pre_123" "pre_xy")

try

(mapcar (lambda (c) (concat "pre_" x)) '("abc" "123" "xy")) 

Comments

Popular posts from this blog

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -