definy.text-byte-at
- description
- The byte at index of the source text, or -1 after the end
- type
Fn(source: Record{text: String, bytes: List<Number>}, index: Number) -> Number- expression
fn(source$0, index$1) =>
match @core.list-get(list: $0.bytes, index: $1) {
#some(byte$2) =>
$2,
#none(_) =>
@core.minus(left: 0, right: 1)
}- visibility
- public
definy.text-byte-at (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: 3Eo7fpaB-UAS2XVFCJgbPXTes52vl32A-vkvS0G0O3o
content hash: 4UKrWgXQaO3ShRX3kjBigCZX4tHmknADYNXKHgMc6tk