codebox: pass an array as an argument to a function?
Is it possible to pass an Array as an argument to a function somehow? Is there some magic syntax which can be used to do this?
(Same question would apply to passing a list type)

Sorry for the huge delay Tyler,
List is easy, I'm not sure if array is supported yet though:
function foo(v: list, m: number): number {
return v[2] * m;
}
out1 = foo([1,2,3], in1);
All good Alex, thanks. FWIW I think I was hoping to be able to pass 2 or 3 dimensional arrays into a function for some processing. I may be able to get by with passing multiple lists in parallel with the syntax you shared.
Thanks for this! I was looking for the syntax for declaring variable types like that in function declarations, does anybody know where I would find it in the documentation?
I couldn't seem to find it, but am grateful to have found the answer here in the forum.
*** EDIT ***
Oh, I found it!
under 'Types'
I hadn't realized how long and full of helpful details that codebox landing page is.