Re: Applying function on a vector of tags to extract content from xml

2013-07-09 Thread Vesna Petkovic
> > On July 8, 2013 at 5:39:14 AM, Vesna Petkovic > (vesna.p...@gmail.com) > wrote: > > (defn func [& tags](#(zf/xml1-> (xml-zipper tags) % zf/text))) > > As the exception states, you are passing 0 arguments to a function that > doesn't accept 0 arguments

Applying function on a vector of tags to extract content from xml

2013-07-08 Thread Vesna Petkovic
I am trying to apply function for extracting content of one tag from xml on a collection of tags. Basically, I am trying to make a function that will extract content from xml, like this (defn get-events[xz] (map (juxt #(zf/xml1-> % :title zf/text) #(zf/xml1-> % :performers :perform

Re: adding values to struct map

2012-04-03 Thread Vesna Petkovic
Yes, you're right... it works now thanks On Tuesday, April 3, 2012 8:26:06 PM UTC+2, mtyaka wrote: > > On Tue, Apr 3, 2012 at 8:15 PM, Vesna Petkovic wrote: >> >> (def events-for-mashup >> (let [title "Events mashup" event-data (vector create-ma

adding values to struct map

2012-04-03 Thread Vesna Petkovic
I've been looking for an answer for my problem on this group in vain. Found something that resolves part of the problem. I want to make a struct map like thi s (def events-for-mashup (let [title "Events mashup" event-data (vector create-map-of-events)] (struct event-map title event-data)