Next: , Previous: , Up: bytevectors 8   [Index]


27.2.14 Filtering and deleting

Function: %bytevector-s8-filter criterion bv start past
Function: %bytevector-u8-filter criterion bv start past
Macro: bytevector-s8-filter B criterion
Macro: bytevector-u8-filter B criterion

Filter the selected subvector, retaining only those bytes that satisfy the criterion argument; a byte is retained when:

Always return a newly allocated bytevector.

Function: %bytevector-s8-delete criterion bv start past
Function: %bytevector-u8-delete criterion bv start past
Macro: bytevector-s8-delete B criterion
Macro: bytevector-u8-delete B criterion

Filter the selected subvector, retaining only those bytes that do not satisfy the criterion argument; a byte is deleted when:

Always return a newly allocated bytevector.