On Sun, Feb 22, 2009 at 4:07 PM, jim <[email protected]> wrote:
>
> In some old code, I did something like:
>
> (with-meta (concat [1 3] [8 4])
>                    {:tail true}))
>
> which now fails.  I believe it's because the result of concat is now
> some kind of reference.
>
> Does anyone have any advice on a workaround?

LazySeq extends AFn, so you can't change the metadata once the object
exists.  However, Seq's still accept meta-data, so:

  (with-meta (seq (concat [1 3] [8 4]))
    {:tail true})

--Chouser

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to