Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!

Idiom #116 Remove occurrences of word from string

Remove all occurrences of string w from string s1, and store the result in s2.

(def s2 (clojure.string/replace s1 w ""))

New implementation...
< >
programming-idioms.org