Parameters.jl usage: group variables to reduce number of inputs to function

That’s true, but now p1 and p2 are separate tuples, right?

If a separate function required parameters from both, they’d have to be fed in separately.

What I’m really doing is computing grid parameters (step size, number of points, etc.) So I have a function func that looks like gp1,gp2,gp3 = func(inputs), where “gp” are my resulting grid parameters.

I need to compute grid parameters for multiple grids, say a low-res and a high-res one:

gp1lo,gp2lo,gp3lo = func(inputslo)
gp1hi,gp2hi,gp3hi = func(inputshi)

Some combination of these will be needed as input to another function. So ideally I could group all gp variables (constants and arrays) into a structure GP, where GP can be the only input to my new function and I can @unpack whatever I need inside it.