1 ;; Like load-file, but will never load the same path twice.
3 ;; This file is normally loaded with `load-file`, so it needs a
4 ;; different mechanism to neutralize multiple inclusions of
5 ;; itself. Moreover, the file list should never be reset.
11 (let* [seen (atom {"../lib/load-file-once.mal" nil})]
13 (if (not (contains? @seen filename))
15 (swap! seen assoc filename nil)
16 (load-file filename))))))))