Files
lux/examples/test_ownership_transfer.lux
2026-02-17 06:52:44 -05:00

11 lines
342 B
Plaintext

fn main(): Unit = {
Console.print("=== Ownership Transfer Test ===")
let a = List.range(1, 100)
let alias = a
let len1 = List.length(alias)
let b = List.map(a, fn(x: Int): Int => x * 2)
let c = List.filter(b, fn(x: Int): Bool => x > 50)
let d = List.reverse(c)
Console.print("Ownership transfer chain done")
}