Repository navigation
how can you use a list as the arguements for any given function? #945
Answered
by
hanna-kn
DryPringleSoup
asked this question in
Q&A
|
kind of like list unpacking in python |
Answered by
hanna-kn
Apr 9, 2026
Replies: 1 comment 4 replies
|
Can you give an example? Separate arguments of a function can be input as a vector, e.g. x=[1 2]; atan2(x) = atan2([1 2]) = atan2(1, 2). For the reverse, functions can specify vector as argument type. If the last argument is a vector, the vector can be input as multiple separate arguments (e.g. mean(1, 2, 3) = mean([1 2 3])). |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This requires a specific solution for
concatenate(implemented in commit ab85535).