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
@time@profilefor i =1:5functionf(x)
return x + i
endf(i)
end
gives
ERROR: syntax: misplaced return statement
Removing the return statement or any of the macros makes it run as expected. Maybe it is wrong to chain macros like this? Reversing the macros also works.
The text was updated successfully, but these errors were encountered:
gives
Removing the return statement or any of the macros makes it run as expected. Maybe it is wrong to chain macros like this? Reversing the macros also works.
The text was updated successfully, but these errors were encountered: