***Raimondii is now known as Raimondi
<janneke>do we have a function to replace a string in a string? <janneke>it seems i'm always struggling with this <janneke>ACTION writes a string-substitute using string-contains and string-replace <rain1>we dont have it, guix does and I was thinking about moving it into guile stdlib <janneke>(define (string-substitute string find replace) <janneke> (let ((index (string-contains string find))) <janneke> (string-drop string (+ index (string-length find))) <chrislck>janneke: someone will come along and rewrite it using named let <chrislck>I have in mind, an inkling that repeated string-append isn't terribly memory efficient, but this may come from python.... a named let could iterate a result starting from '() accumulating substrings, and a final (string-append result) to create 1 long string. <janneke>chrislck: thanks, named let is also fine <janneke>it would be nice to have something like that in srfi-1 <rain1>yeah its a shame it isn't in there <chrislck>yeah everyone writes it... but it's excellent fodder for newbies <janneke>rain1: yes, we really need some of those in guile or another library <janneke>i was hoping gash would catalize that