OxL Reference

src/main.oxl

oxl
use self.native { hypot, absolute, sortInts }

fn main() io {
  print("hypot(3, 4) = {hypot(3.0, 4.0)}")
  print("abs(-17) = {absolute(-17)}")
  var xs: List<i32> = [5, 3, 9, -1, 7, 0]
  sortInts(&var xs)
  print("{xs}")
}

Source: examples/ffi-demo/src/main.oxl