(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 is a website building & hosting documentation for Clojure/Script libraries
× close