Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add pbr as alias to pushback-reader. Best name ever.

  • Loading branch information...
commit edf6950124cd2bc916e30852817c79af620450d7 1 parent a5680da
@amalloy amalloy authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/useful/io.clj
View
5 src/useful/io.clj
@@ -1,5 +1,6 @@
(ns useful.io
- (:use [clojure.java.io :only [reader]])
+ (:use [clojure.java.io :only [reader]]
+ [useful.ns :only [defalias]])
(:import (java.io Reader PushbackReader)))
(defprotocol PushbackFactory
@@ -18,6 +19,8 @@
(pushback-reader [this]
(pushback-reader (reader this))))
+(defalias pbr pushback-reader)
+
(let [sentinel (Object.)
valid? #(not (identical? % sentinel))]
(defn read-seq
Please sign in to comment.
Something went wrong with that request. Please try again.