Is there a way to access all the values in a variadic parameter? #1772
Replies: 1 comment
-
guess this little hack works fn main():
test[2, "uno", "dos"]()
fn test[n: Int, *s: String]():
for i in range(n):
print(s[i]) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am just testing what works and what doesnt, and this code
gets me the error
meanwhile this works
Is there a way to access all of the values of the parameter
s
?Beta Was this translation helpful? Give feedback.
All reactions