src/basilisp/lang/runtime.py
def add_import(
        self, sym: sym.Symbol, module: types.ModuleType, *aliases: sym.Symbol
    ) -> None:
        """Add the Symbol as an imported Symbol in this Namespace. If aliases are given,
        the aliases will be applied to the """
        self._imports.swap(lambda m: m.assoc(sym, module))
        if aliases:
            self._import_aliases.swap(
                lambda m: m.assoc(
                    *itertools.chain.from_iterable([(alias, sym) for alias in aliases])
                )
            )
def add_import(
        self, sym: sym.Symbol, module: types.ModuleType, *aliases: sym.Symbol
    ) -> None:
        """Add the Symbol as an imported Symbol in this Namespace. If aliases are given,
        the aliases will be applied to the """
        self._imports.swap(lambda m: m.assoc(sym, module))
        if aliases:
            self._import_aliases.swap(
                lambda m: m.assoc(
                    *itertools.chain.from_iterable([(alias, sym) for alias in aliases])
                )
            )
def add_import ( self , sym : sym . Symbol , module : types . ModuleType , * aliases : sym . Symbol ) -> None : self . _imports . swap ( lambda m : m . assoc ( sym , module ) ) if aliases : self . _import_aliases . swap ( lambda m : m . assoc ( * itertools . chain . from_iterable ( [ ( alias , sym ) for alias in aliases ] ) ) )
Add the Symbol as an imported Symbol in this Namespace. If aliases are given,
        the aliases will be applied to the
Add the Symbol as an imported Symbol in this Namespace . If aliases are given the aliases will be applied to the