alfred3.util.to_dict#

alfred3.util.to_dict(data, prefix: str = '', sep: str = '_') dict[source]#

dict: Turns an iterable into a flat dictionary.

The keys are procuded by counting through the elements of the iterable and concatenating them with the prefix and sep: key = prefix + sep + str(i), where i is the count.