1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00
ZoKrates/zokrates_cli/examples/book/generic_function_declaration.zok
2022-04-06 20:23:58 +02:00

8 lines
119 B
Text

def foo<N>() -> field[N] {
return [42; N];
}
def main() -> field[2] {
field[2] res = foo();
return res;
}