def Cursor.region
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytesimport 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)