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.
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"}]
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
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
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