Next: bytevectors 8 replicate, Previous: bytevectors 8 filter, Up: bytevectors 8 [Index]
Return a newly allocated list of the bytes that make up the given subvector.
Like %bytevector->u8-list*
but reverses the order of the bytes
from the subvector.
Reverse the given list of characters, then compose a bytevector with the result.
Split the selected subvector into a list of bytevectors, where each bytevector is a maximal, non–empty, contiguous sequence of bytes whose character interpretation in ASCII encoding is in the character set token-set.
This procedure is a simple unparser: it pastes strings together using
the delimiter bytevector. delimiter defaults to a single
byte representing a white space in ASCII encoding. grammar is
a symbol that determines how the delimiter is used, and defaults to
infix
. Supported values for grammar are:
infix
Means an infix or separator grammar: insert the delimiter between list elements. An empty list will produce an empty string.
Note: Parsing an empty string with an infix grammar is ambiguous. Is it an empty list, or a list of one element, the empty string?
strict-infix
Means the same as infix
, but will raise an error if given an
empty list.
suffix
Means a suffix or terminator grammar: insert the delimiter after every list element. This grammar has no ambiguities.
prefix
Means a prefix grammar: insert the delimiter before every list element. This grammar has no ambiguities.
Next: bytevectors 8 replicate, Previous: bytevectors 8 filter, Up: bytevectors 8 [Index]