(reduce-iter iter f init)(slurp path)slurps a file as string
(read-string (u/slurp "project.clj")) => h/form?
slurps a file as string (read-string (u/slurp "project.clj")) => h/form?
(spit path body)spits out a string to file
(u/spit "./test-scratch/hello.txt" "HELLO") => true
(slurp "./test-scratch/hello.txt") => "HELLO"
spits out a string to file
(u/spit "./test-scratch/hello.txt"
"HELLO")
=> true
(slurp "./test-scratch/hello.txt")
=> "HELLO"cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |