mirror of
https://github.com/bearlanguageorg/bear.git
synced 2026-08-26 15:37:18 +00:00
vrmm build files
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// debug: test arr[0] in function body
|
||||
|
||||
fn first(arr) {
|
||||
println(arr[0])
|
||||
return arr[0]
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let nums = [10, 20, 30]
|
||||
let result = first(nums)
|
||||
println("result = ${result}")
|
||||
}
|
||||
Reference in New Issue
Block a user