Viper functions can now be annotated with the type of their arguments
and return value. Eg:
@micropython.viper
def f(x:int) -> int:
return x + 1
3 lines
4 B
Plaintext
3 lines
4 B
Plaintext
6
|
|
3
|