Maxima Function
sinsert (seq, string, pos)
Returns a string that is a concatenation of substring (string, 1, pos - 1)
,
the string seq and substring (string, pos)
.
Note that the first character in string is in position 1.
(%i1) s: "A submarine."$ (%i2) sconc( substring(s,1,3),"yellow ",substring(s,3) ); (%o2) A yellow submarine. (%i3) sinsert("hollow ",s,3); (%o3) A hollow submarine.