Delaration of an array with indexed type

Hi,

I found a big problem to declare an array with composite type.

In my code, I would like to write

tuple PM
{
npm::Int64
nvm::String;
}

indexes=PM
push!(indexes,PM(1,“s”))
push!(indexes,PM(2,“s”))
push!(indexes,PM(1,“m”))
push!(indexes,PM(2,“m”))

How could I write ths declaration ?

int countPVX[indexes]; ???

This is not even Julia code?

Neither is this.

Please try to put some effort into formulating your question. See Please read: make it easier to help you.

xref: indexing - Problem how to declare an array of composite type with Julia - Stack Overflow

2 Likes