programextensions/hello/demos/tour.xtl

A tour of the hello extension: X_eTaL arrays handed to Rust and back. Run: just demo hello tour (or: xetal-x --ext extensions/hello run demos/tour.xtl)

source · imports hx: extensions/hello/lib/Hello.xtl

t : Int

value · line 13

A 10 by 10 times table crosses the boundary as one array, summed in Rust: 55 squared.

t ← (r̲ange 10) '× t̲able r̲ange 10

c : Int

value · line 17

A rank-3 array goes out and comes back with its shape intact.

c ← 2 3 4 r̲eshape r̲ange 24