Kaba struct Range ed

...

Syntax ed

struct Range
    var length: i32
    var offset: i32

    # constructors
    func mut __init__(offset: i32, length: i32)

    # functions
    func covers(o: Range) -> bool
    func end() -> i32
    func inside(pos: i32) -> bool
    func overlaps(o: Range) -> bool
    func start() -> i32

    # operators
    func __contains__(pos: i32) -> bool  # i32 in Range -> bool
    func __and__(o: Range) -> Range      # Range and Range -> Range
    func __str__() -> string             # str(Range) -> string
    func mut __assign__(other: Range)    # Range = Range

Functions ed

func covers(o: Range) -> bool
...

func end() -> i32
...

func inside(pos: i32) -> bool
...

func overlaps(o: Range) -> bool
...

func start() -> i32
...

Elements ed

var length: i32
...

var offset: i32
...