diff options
Diffstat (limited to 'src/boot.clj')
| -rw-r--r-- | src/boot.clj | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/boot.clj b/src/boot.clj index a7a346d7..90d702bd 100644 --- a/src/boot.clj +++ b/src/boot.clj @@ -2387,3 +2387,12 @@ not-every? (comp not every?)) (if ((bound-fn sc end-test end-key) e) s (rest s)))))) +(defn repeatedly + "Takes a function of no args, presumably with side effects, and returns an infinite + lazy sequence of calls to it" + [f] (lazy-cons (f) (repeatedly f))) + + +(defn add-classpath + "Adds the url (String or URL object) to the classpath per URLClassLoader.addURL" + [url] (clojure.lang.RT.addURL url)) |
