40ants / 40ants/lisp-project-of-the-day

INFO: str:replace-using

Open
#17 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Common Lisp
Stars
55
Forks
6
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.