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 -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -