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

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -