I am learning to code in solidity and stuck with view functions. I am trying to return values taken dynamically in a structure using view function. Is there a way to do it is solidity? I tried it but it always throws an error "invalid opcode" or if I use loops it gives warnings like unreachable code.