def Cursor.region

bend-kit-bytes@0.3.3.0 · bytes.bend:859

import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
import Base

859def Cursor.region(c: Cursor, +n: U32) -> Cursor & Maybe<&1, CursorLimit>:
860  Cursor{Bytes{+len, buf}, +pos, +start, +end} = c
861  Cursor.region.if(Cursor.fits(len, pos, start, end, n), Cursor{Bytes{len, buf}, pos, start, end}, n)

Uses (8)

Used by (4)