def get
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytesimport Base
141# Byte i, or None when i >= len.
142def get(b: Bytes, +i: U32) -> Bytes & Maybe<&2, U32>:
143 Bytes{+len, buf} = b
144 get.if(U32.is_lt(i, len), len, buf, i)
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytesimport Base
141# Byte i, or None when i >= len.
142def get(b: Bytes, +i: U32) -> Bytes & Maybe<&2, U32>:
143 Bytes{+len, buf} = b
144 get.if(U32.is_lt(i, len), len, buf, i)