Co chciałbym zrobić (w Clojure):Jak usunąć listę słów z ciągów
Na przykład, mam wektor słów, które muszą zostać usunięte:
(def forbidden-words [":)" "the" "." "," " " ...many more...])
.. . i wektor ciągów:
(def strings ["the movie list" "this.is.a.string" "haha :)" ...many more...])
Więc każdy zabronione słowo powinno być usunięte z każdej struny, a wynik, w tym przypadku, to: [ „lista film” „thisisastring” „haha”].
Jak to zrobić?
Czy ten link pomóc: http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/string.clj#L162 –