- bytestring-trim bytevector predprocedure
- bytestring-trim-right bytevector predprocedure
- bytestring-trim-both bytevector predprocedure
Returns a newly allocated bytevector with the contents of bytevector, except that consecutive bytes at the beginning / the end / both the beginning and the end that satisfy pred are not included.
(bytestring-trim #u8" Trillian" (lambda (b) (= b #x20))) ⇒ #u8"Trillian" (bytestring-trim-both #u8(0 0 #x80 #x7f 0 0 0) zero?) ⇒ #u8(#x80 #x7f)