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

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -