55
print("Hello, world!")
let fibonacci = fn(n) {
if (n < 2) {
return n;
}
return fibonacci(n - 1) + fibonacci(n - 2);
}
fibonacci(10)
let linear_search = fn(arr, target) {
let i = 0;
while(i < len(arr)) {
if(arr[i] == target) {
return i;
}
i = i + 1;
}
}
linear_search([1, 2, 3], 2);