Skip to content

Commit fc7f050

Browse files
committed
Add Load A File Into The REPL as a clojure til.
1 parent febd5bb commit fc7f050

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Diff for: README.md

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

Diff for: clojure/load-a-file-into-the-repl.md

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

0 commit comments

Comments
 (0)