Thank you. That seems to do the trick.
-Mark
On Feb 7, 11:55 pm, Alex Osborne wrote:
> Mark Fredrickson writes:
> > Is the following behavior correct or a bug:
>
> > user> (defrecord Example [data] clojure.lang.IFn (invoke [this] this)
> > (invoke [this n] (repeat n this)))
> > user.Example
>
Mark Fredrickson writes:
> Is the following behavior correct or a bug:
>
> user> (defrecord Example [data] clojure.lang.IFn (invoke [this] this)
> (invoke [this n] (repeat n this)))
> user.Example
> user> (def e (Example. "I am e"))
> #'user/e
> user> (e 2)
> (#:user.Example{:data "I am e"} #:use
Is the following behavior correct or a bug:
user> (defrecord Example [data] clojure.lang.IFn (invoke [this] this)
(invoke [this n] (repeat n this)))
user.Example
user> (def e (Example. "I am e"))
#'user/e
user> e
#:user.Example{:data "I am e"}
user> (e 2)
(#:user.Example{:data "I am e"} #:user.Exa