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

14 lines
432 B
Plaintext

fn main(): Unit = {
Console.print("=== Allocation Comparison ===")
Console.print("Test 1: FBIP path")
let a1 = List.range(1, 50)
let b1 = List.map(a1, fn(x: Int): Int => x * 2)
let c1 = List.reverse(b1)
Console.print("FBIP done")
Console.print("Test 2: Non-FBIP path (concat)")
let x = List.range(1, 25)
let y = List.range(26, 50)
let z = List.concat(x, y)
Console.print("Concat done")
}