mirror of
https://github.com/circify/circ.git
synced 2026-04-21 03:00:54 -04:00
13 lines
205 B
Plaintext
13 lines
205 B
Plaintext
const u32[5] asdf = [1, 2, 3, 4, 5];
|
|
|
|
def last<N>(u32[N] a) -> u32 {
|
|
return a[N - 1];
|
|
}
|
|
|
|
def foo<N>(u32[N] a) -> u32 {
|
|
return last([...a, ...a]);
|
|
}
|
|
|
|
def main() -> u32 {
|
|
return foo([1, 2, 3]);
|
|
} |