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

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

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

google shop client API returns 400 bad request error while adding an item -