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
Post a Comment