Attempting to write a function that transform some list of input into a different type but inferring all the possible value types.
This is a snippet of what I am trying