Permalink
Browse files

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

  • Loading branch information...
1 parent a5680da commit edf6950124cd2bc916e30852817c79af620450d7 @amalloy amalloy committed Nov 16, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/useful/io.clj
View
@@ -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

0 comments on commit edf6950

Please sign in to comment.