mirror of
https://github.com/bearlanguageorg/bear.git
synced 2026-08-26 15:17:19 +00:00
11 lines
146 B
Plaintext
11 lines
146 B
Plaintext
// simple generic test - no type args
|
|
|
|
fn first[T](arr) {
|
|
return arr[0]
|
|
}
|
|
|
|
fn main() {
|
|
let nums = [10, 20, 30]
|
|
println(first(nums))
|
|
}
|