1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Add Load A File Into The REPL as a clojure til.

This commit is contained in:
jbranchaud
2016-01-13 21:27:24 -06:00
parent febd5bb99f
commit fc7f050289
2 changed files with 14 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
- [Evaluate One Liners With lein-exec](clojure/evaluate-one-liners-with-lein-exec.md) - [Evaluate One Liners With lein-exec](clojure/evaluate-one-liners-with-lein-exec.md)
- [Expanding Macros](clojure/expanding-macros.md) - [Expanding Macros](clojure/expanding-macros.md)
- [Get The Value Of An Environment Variable](clojure/get-the-value-of-an-environment-variable.md) - [Get The Value Of An Environment Variable](clojure/get-the-value-of-an-environment-variable.md)
- [Load A File Into The REPL](clojure/load-a-file-into-the-repl.md)
- [Mapping With An Index](clojure/mapping-with-an-index.md) - [Mapping With An Index](clojure/mapping-with-an-index.md)
- [Open JavaDocs](clojure/open-javadocs.md) - [Open JavaDocs](clojure/open-javadocs.md)
- [Pretty Print The Last Thing](clojure/pretty-print-the-last-thing.md) - [Pretty Print The Last Thing](clojure/pretty-print-the-last-thing.md)

View File

@@ -0,0 +1,13 @@
# Load A File Into The REPL
You can quickly load a file into a REPL session using the `load-file`
function. You can specify an absolute or relative path and it will
> sequentially read and evaluate the set of forms contained in the file.
```clojure
(load-file "path/to/file.clj")
```
See the [`load-file` docs](https://clojuredocs.org/clojure.core/load-file)
for more details.