std.byte-at-or-zero
- description
- The byte at index, or 0 when index is out of range
- type
Fn(bytes: List<Number>, index: Number) -> Number
- expression
fn(bytes$0, index$1) =>
match @core.list-get(list: $0, index: $1) {
#none(_) =>
0,
#some(byte$2) =>
$2
}- visibility
- public
std.byte-at-or-zero (project definy, branch commit-check, snapshot Jh11inSnBH1eenK5G-juhyzQabT1OLdy3NmjD6OiVCs)
id: mBQvMpx6aJtjPK07nJ4aPGZeVcHgmMtmKGWWNv3gwK8
content hash: FMu61mt0pKmNcadDAaYJ3e4LSxEEj4nzF1qI9qw-7SU