diff options
| author | Rich Hickey <richhickey@gmail.com> | 2008-05-12 19:49:46 +0000 |
|---|---|---|
| committer | Rich Hickey <richhickey@gmail.com> | 2008-05-12 19:49:46 +0000 |
| commit | 288d18fa2fdb293fde171a70e5cd8d63b8c30822 (patch) | |
| tree | dcf8d8f25ffdad46c39f73994f66a0e26a58027b /src/boot.clj | |
| parent | 20bbbe02fd41ff11934be6344395b998ad4699e4 (diff) | |
added repeatedly and add-classpath
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)) |
