chickadee » srfi-207 » bytestring-replace

(bytestring-replace bytevector₁ bytevector₂ start₁ end₁ [start₂ end₂])procedure

Returns a newly allocated bytevector with the contents of bytevector₁, except that the bytes indexed by start₁ and end₁ are not included but are replaced by the bytes of bytevector₂ indexed by start₂ and end₂.

(bytestring-replace #u8"Vogon torture" #u8"poetry" 6 13)
  ⇒ #u8"Vogon poetry"