blob: f540fcb71eed48cb64b74080b205e0ef36fa1a74 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
/* Integration Test: Pattern Matching */
/* Combines: case expressions, functions, recursion, complex patterns */
..out "=== Integration Test: Pattern Matching ===";
/* Recursive factorial with case expressions */
factorial : n ->
when n is
0 then 1
_ then n * (factorial (n - 1));
|