在Emacs Lisp中字符串列表

Mir*_*lov 4 string emacs elisp concatenation chars

我有一个字符列表,(?h ?e ?l ?l ?o)我想将其转换为字符串"hello".目前我使用这种结构:

(concat (mapcar (lambda (ch) (char-to-string ch)) s))
Run Code Online (Sandbox Code Playgroud)

是否有更优雅和惯用的方式将字符列表转换为 Elisp中的字符串

Ant*_*nko 9

Elisp's concat返回一个字符串:

(concat '(?h ?e ?l ?l ?o))
Run Code Online (Sandbox Code Playgroud)

(从coerce实施中发现cl)


Ste*_*fan 6

还有(apply #'string LIST-OF-CHARS).