Write a function that transforms a list of characters into a list of dictionaries, where:
to_dict(["a", "b", "c"]) ➞ [{"a": 97}, {"b": 98}, {"c": 99}] to_dict(["^"]) ➞ [{"^": 94}] to_dict([]) ➞ []
N/A