Enum methods and more

This commit is contained in:
allexanderbergmns
2026-08-24 18:04:55 +02:00
parent 9504a9301b
commit 50712c5f17
7 changed files with 319 additions and 11 deletions
+23
View File
@@ -0,0 +1,23 @@
// math_utils.vr — a small utility library for the import example
fn add(a, b) {
return a + b
}
fn multiply(a, b) {
return a * b
}
fn factorial(n) {
if n <= 1 {
return 1
}
return n * factorial(n - 1)
}
fn fibonacci(n) {
if n <= 1 {
return n
}
return fibonacci(n - 1) + fibonacci(n - 2)
}