Have a look at the NamedTuples package.

 

From: [email protected] [mailto:[email protected]] On 
Behalf Of Jason McConochie
Sent: Tuesday, November 17, 2015 1:26 PM
To: julia-users <[email protected]>
Subject: [julia-users] Best way to return many arrays from function

 

In matlab I group arrays into structures such that I can deal with one variable 
as the output from the function

e.g. 

function o=someFunction(in)

o.someArray1=[0,0,0,0];

o.someArray2=[1,1,1,1];

end

 

What is the Julia equivalent?  Maintaining the efficiency of the contiguous 
columnar array access in Julia.

Reply via email to