/* Test FunctionDeclaration behavior */ // Test 1: Regular function declaration test_func : x y -> x + y; // Test 2: Function declaration with when expression test_when : x -> when x is 0 then "zero" _ then "other" ; // Test 3: Function declaration in table table_func : { add: x y -> x + y, classify: x -> when x is 0 then "zero" _ then "other" }; // Output tests ..out "=== FUNCTION DECLARATION TEST ==="; ..out "Regular function:"; result1 : test_func 5 3; ..out result1; ..out "When function:"; result2 : test_when 0; ..out result2; result3 : test_when 5; ..out result3; ..out "Table functions:"; result4 : table_func.add 10 20; ..out result4; result5 : table_func.classify 0; ..out result5;