Create a gist now

Instantly share code, notes, and snippets.

Simple example of converting tuples to a map
def tupleToMap(inputs):
field_names = ["field1", "field2", "field3"]
result = {}
if len(field_names) == len(inputs):
for i in range(len(inputs)):
result[field_names[i]] = inputs[i]
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment