Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はこのようなシーケンスを得ました:
(\$ \# \A \( \* \& \9 \8 \7 \Z \f)
\A や \Z のように大文字の ASCII 文字を除外したい
標準ライブラリを検索しようとしましたが、うまくいきませんでした。
誰でも私を助けることができますか?
以下を使用してください
(filter #(Character/isUpperCase %) `(\$ \# \A \( \* \& \9 \8 \7 \Z \f))
結果 :(\A \Z)
(\A \Z)
私の解決策:
(filter (set (map char (range 65 91))) '(\$ \# \A \( \* \& \9 \8 \7 \Z \f))
戻り値:
'(\A \Z)