I have a struct like so :
struct fooStruct {
uint foo;
uint figther;
}
I would like to initialize that struct but it won't be stored in a mapping but inside an array.
Is there a way to initialize the struct like
fooStruct myStruct = fooStruct.new(par1,2,3)
Best Answer
Yes, just use
Or
Or
See the docs for more examples