string - Flexible replace substring - Scheme -


is there, in scheme, way replace substring of string string, length of vary? looking similar this:

(replace-all string pattern replacement) (replace-all "slig slog slag" "g" "ggish")     => "sliggish sloggish slaggish" 

sure, take @ documentation of scheme interpreter find suitable procedure. instance, in racket have string-replace works this:

(string-replace "slig slog slag" "g" "ggish") => "sliggish sloggish slaggish" 

Comments

Popular posts from this blog

renaming files in a directory using python or R -

html - outline-style different in chrome compared to firefox and internet explorer -

ruby on rails - Carrierwave Timeout -