Aw: Re: Building a vector of vector list

2011-06-08 Thread Meikel Brandmeyer
Hi again, this works only because you call your function with just one package. I get the impression you just want: (defn ea-xmi [dname & packages] (into [:xmi {:version "2.1" :nsuml "http://schema.omg.org/spec/UML/2.1"; :nsxmi "http://schema.omg.org/spec/XMI/2.

Re: Building a vector of vector list

2011-06-08 Thread Mushfaque Chowdhury
Ahh yes, this works (with apply):- (defn ea-xmi [dname & packages] (into [:xmi {:version "2.1" :nsuml "http://schema.omg.org/spec/UML/2.1"; :nsxmi "http://schema.omg.org/spec/XMI/2.1"; :customprofile "http://www.sparxsystems.com/profiles/ thecustomprofile/1.0"}]

Re: Building a vector of vector list

2011-06-08 Thread Mushfaque Chowdhury
Thanks Meikel I'm hoping that the "into" function is not going to make things inefficient but I'll give it a go. I also agree, eval is not what I want, because it does feel wrong. Something tells me that I should be using apply, but I've not yet figured out why/how. Ronnie On Jun 8, 2:07 pm, Me

Aw: Building a vector of vector list

2011-06-08 Thread Meikel Brandmeyer
Hi, you just need a slight change in your ea-xmi function. (defn ea-xmi [dname & packages] (into [:xmi {:version "2.1" :nsuml "http://schema.omg.org/spec/UML/2.1"; :nsxmi "http://schema.omg.org/spec/XMI/2.1"; :customprofile "http://www.sparxsystem

Building a vector of vector list

2011-06-08 Thread Mushfaque Chowdhury
Hi all I'm trying to build a vector data structure that can be printed using the core prn function. Here's my test case (defn ea-xmi [dname & packages] [:xmi {:version "2.1" :nsuml "http://schema.omg.org/spec/UML/2.1"; :nsxmi "http://schema.omg.org/spec/XMI/2.1"; :c