Skip to content

Instantly share code, notes, and snippets.

@uwo
Last active November 15, 2018 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uwo/af25da65891b94f3eacb2a024b736cb4 to your computer and use it in GitHub Desktop.
Save uwo/af25da65891b94f3eacb2a024b736cb4 to your computer and use it in GitHub Desktop.
file utils
.cpcache
.nrepl-port
{:paths ["."]}
(ns fu
(:require [clojure.edn :as edn]
[clojure.java.io :as io])
(:import (java.io PushbackReader)))
(defn readf [filename] (PushbackReader. (io/reader filename)))
(defn reade
[filename]
(edn/read-string {:readers *data-readers*} (slurp filename)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment