I missed your reply, Raek. Sorry. Your solution is very helpful.
Cheers,
Simon
> From what I can tell, you want to list the values and extract the
> value associated with :time for a map. The problem is that res is not
> a map, but a vector of maps. If you want to do these operations on
> ever
On Wed, Jan 25, 2012 at 10:45 AM, Simon Holgate wrote:
> I've retrieved some data from my database which is returned as a
> clojure.lang.PersistentVector:
> org.psmsl.netcdf.core> res
> [{:name "BREST", :time #, :rlrdata 6882M} {:name
> "BREST", :time #, :rlrdata 6908M} {:name
> "BREST", :time #,
Answering myself, I see that I need to do:
(vals (res 1))
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
first
Hi,
I've retrieved some data from my database which is returned as a
clojure.lang.PersistentVector:
org.psmsl.netcdf.core> res
[{:name "BREST", :time #, :rlrdata 6882M} {:name
"BREST", :time #, :rlrdata 6908M} {:name
"BREST", :time #, :rlrdata 6873M}...{:name
"BREST", :time #, :rlrdata 7140M} {:na