Frequently when working in the repl I want to take a datastructure and
copy it into a test, however if that datastructure contains lists or
more often lazy-seqences these are printed within unquoted (), so when
I copy the result into my test I need to replace these lists with
vectors or quote
As an alternative, you could quote the entire expression (you can quote
anything, not just lists) when copying data structures into a test.
-S
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
On Apr 16, 10:45 am, Stuart Sierra the.stuart.sie...@gmail.com
wrote:
As an alternative, you could quote the entire expression (you can quote
anything, not just lists) when copying data structures into a test.
-S
It never occurred to me to do that so I guess that works...
As my
If you go down that path, I think vec
(http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/vec)
is worth looking at.
I've always understood that vec turns lists into vectors, but leaves
vectors alone... which looks like what you are doing.
On Mon, Apr 16, 2012 at 1:02 PM,
On Apr 16, 11:07 am, Jay Fields j...@jayfields.com wrote:
If you go down that path, I think vec
(http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/vec)
is worth looking at.
I've always understood that vec turns lists into vectors, but leaves
vectors alone... which looks