import std::io; type bytes = span; type count = u64; trait viewer { def see(&this, from: u64): span; } struct box : viewer { var n: u8[3]; } def box::see(&this, from: count): bytes { return this.n[from:3 - from]; } def use(v: &viewer): u64 { return v.see(1).length; } def main(): void { val b := box{ n = [1, 2, 3] }; println($"{use(&b)}"); }