lisp-project-of-the-day icon indicating copy to clipboard operation
lisp-project-of-the-day copied to clipboard

INFO: str:replace-using

Open vindarel opened this issue 5 years ago • 0 comments

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.

vindarel avatar Jun 30 '20 19:06 vindarel