lisp-project-of-the-day
lisp-project-of-the-day copied to clipboard
INFO: str:replace-using
Hello,
FYI this code:
(defun smile->unicode (text)
(arrows:->>
text
(str:replace-all ":)" "😀")
(str:replace-all ":|" "🤨")
(str:replace-all ":(" "🥺")))
can now use str:replace-using for multi-replacement:
(defun smile->unicode (text)
(str:replace-using '(":)" "😀"
":|" "🤨"
":(" "🥺")
text))
The function was added on June, 4th.