I need to create a lookup table [uint -> uint] that is constant.
Constant mappings
or switch-case
are not available in solidity. Are pure
functions full of if-else
the only option?
Any better suggestion?
Update Ideally, I would like an option that minimizes gas utilization