style: auto-format example files with lux fmt

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-17 06:52:44 -05:00
parent 8c90d5a8dc
commit 44ea1eebb0
54 changed files with 580 additions and 1483 deletions

View File

@@ -1,14 +1,7 @@
// Math utilities module
// Exports: square, cube, factorial
fn square(n: Int): Int = n * n
pub fn square(n: Int): Int = n * n
fn cube(n: Int): Int = n * n * n
pub fn cube(n: Int): Int = n * n * n
fn factorial(n: Int): Int = if n <= 1 then 1 else n * factorial(n - 1)
pub fn factorial(n: Int): Int =
if n <= 1 then 1
else n * factorial(n - 1)
pub fn sumRange(start: Int, end: Int): Int =
if start > end then 0
else start + sumRange(start + 1, end)
fn sumRange(start: Int, end: Int): Int = if start > end then 0 else start + sumRange(start + 1, end)