// Example using the standard library import std/prelude.* import std/option as opt fn main(): Unit with {Console} = { Console.print("=== Using Standard Library ===") // Prelude functions Console.print("identity(42) = " + toString(identity(42))) Console.print("not(true) = " + toString(not(true))) Console.print("and(true, false) = " + toString(and(true, false))) Console.print("or(true, false) = " + toString(or(true, false))) // Option utilities let x = opt.some(10) let y = opt.none() Console.print("isSome(Some(10)) = " + toString(opt.isSome(x))) Console.print("isNone(None) = " + toString(opt.isNone(y))) Console.print("unwrapOr(Some(10), 0) = " + toString(opt.unwrapOr(x, 0))) Console.print("unwrapOr(None, 0) = " + toString(opt.unwrapOr(y, 0))) } let output = run main() with {}