An interned mapping is one where a var's ns matches the current ns and its sym matches the mapping key. Once established, interned mappings should never change.
(Symbol sym, Object o)
| 55 | * Once established, interned mappings should never change. |
| 56 | */ |
| 57 | private boolean isInternedMapping(Symbol sym, Object o){ |
| 58 | return(o instanceof Var && |
| 59 | ((Var) o).ns == this && |
| 60 | ((Var) o).sym.equals(sym)); |
| 61 | } |
| 62 | |
| 63 | public Var intern(Symbol sym){ |
| 64 | if(sym.ns != null) |
no test coverage detected