@classmethod
def fromkeys(cls, iterable, value=None):
    """
        Create a new trie with keys from ``iterable`` and values set to
        ``value``.

        Parameters are the same with ``dict.fromkeys()``.
        """
    trie = cls()
    for key in iterable:
        trie[key] = value
    return trie
