You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will be handy to directly obtain the length of an array variable.
For example
fninit_arr(constLEN:Field) -> [Field;LEN + 2]{return[0;LEN + 2];}fnmain(){let arr = init_arr(10);assert_eq(arr.len,12);// should also support being used to instantiate functions in mast phaselet arr2 = init_arr(arr.len);assert_eq(arr2.len,14);}
The text was updated successfully, but these errors were encountered:
It will be handy to directly obtain the length of an array variable.
For example
The text was updated successfully, but these errors were encountered: