Given a list of hex integers, I want to end up with one hex integer where the integers are treated as most-significant first and least-significant last.
For example, given... [0x1A, 0xF3, 0x74, 0xA3]
...I want to end up with 0x1AF374A3
In another programming language that I'm familiar with this is a fairly simple operation called "join", but apparently "join" means something else in Python.
I know I can iterate through the list multiplying each subsequent element by 2^something and adding them. I also know I can convert the elements to strings, concatenate them and then convert back to integer. But both those approaches seem clunky. Seems like there should be a simpler / more elegant way. Is there?
Thanks in advance for any help!