Ténno Seremél on Nostr: So, if in elisp I want to get a string where all characters in a source string are ...
So, if in elisp I want to get a string where all characters in a source string are replaced with other characters I do
(concat (seq-map 'my-func s))
OR
(require 'cl-lib)
(cl-map 'string 'my-func s)
Is there anything else? Some mapchar, I dunno. What’s preferable? 🤔
#lang_en #elisp #emacs #questions
Published at
2024-12-06 20:17:51Event JSON
{
"id": "3495d81d6963a947d32c261966cc165cc44b1b8d050f471b132b6f6bc1b05812",
"pubkey": "d33d442cb0a7782f3296854cab732333f5b52db6c91058696d5bebbad4242a4b",
"created_at": 1733516271,
"kind": 1,
"tags": [
[
"t",
"lang_en"
],
[
"t",
"elisp"
],
[
"t",
"emacs"
],
[
"t",
"questions"
],
[
"proxy",
"https://lor.sh/users/tennoseremel/statuses/113607722357016489",
"activitypub"
]
],
"content": "So, if in elisp I want to get a string where all characters in a source string are replaced with other characters I do\n\n(concat (seq-map 'my-func s))\n\nOR\n\n(require 'cl-lib)\n(cl-map 'string 'my-func s)\n\nIs there anything else? Some mapchar, I dunno. What’s preferable? 🤔\n\n#lang_en #elisp #emacs #questions",
"sig": "0333c45ff99189ee785316259f9a634c93253df99f4394e79f3fd6c42cee5c722aefdbe3e5524ece2bd180a4f4eee09dceb501d9e3983ed67c7d6cf55d6bf822"
}