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

INFO: str:replace-using

オープン
#17 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Common Lisp
スター
55
フォーク
6
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。