src/basilisp/lang/runtime.py
def get_current_ns(
    ns_var_name: str = NS_VAR_NAME, ns_var_ns: str = NS_VAR_NS
) -> Namespace:
    """Get the value of the dynamic variable `*ns*` in the current thread."""
    ns_sym = sym.Symbol(ns_var_name, ns=ns_var_ns)
    ns: Namespace = Maybe(Var.find(ns_sym)).map(lambda v: v.value).or_else_raise(
        lambda: RuntimeException(f"Dynamic Var {ns_sym} not bound!")
    )
    return ns
def get_current_ns(
    ns_var_name: str = NS_VAR_NAME, ns_var_ns: str = NS_VAR_NS
) -> Namespace:
    """Get the value of the dynamic variable `*ns*` in the current thread."""
    ns_sym = sym.Symbol(ns_var_name, ns=ns_var_ns)
    ns: Namespace = Maybe(Var.find(ns_sym)).map(lambda v: v.value).or_else_raise(
        lambda: RuntimeException(f"Dynamic Var {ns_sym} not bound!")
    )
    return ns
def get_current_ns ( ns_var_name : str = NS_VAR_NAME , ns_var_ns : str = NS_VAR_NS ) -> Namespace : ns_sym = sym . Symbol ( ns_var_name , ns = ns_var_ns ) ns : Namespace = Maybe ( Var . find ( ns_sym ) ) . map ( lambda v : v . value ) . or_else_raise ( lambda : RuntimeException ( f"Dynamic Var {ns_sym} not bound!" ) ) return ns
Get the value of the dynamic variable `*ns*` in the current thread.
Get the value of the dynamic variable * ns * in the current thread .