What map would be defined for the first argument with the given code? It seems like how it is set up, it is grabbing information straight from the JSON data without a map defined. The 'format-forecast' definition takes forecast as an arg so I tried it like this with no luck:
*:hour-summary (core/get-in forecast [**:dayPrecipitation :temp])* * * I wasn't sure what else to put for the first argument. Thanks for the heads up on the clojure.core requirement. I saw it in some other code online; figured I needed it. Also, thanks again for the help. On Thu, May 9, 2013 at 6:17 PM, Michael Klishin <michael.s.klis...@gmail.com > wrote: > > 2013/5/10 Hawkeye02 <bryan.d.hender...@gmail.com> > >> :hour-summary (core/get-in :dayPrecipitation [:temp] forecast) > > > I don't think you use get-in the way it is demonstrated in the examples. > It takes a map > as the first argument and a collection of keys to traverse. > > http://clojuredocs.org/clojure_core/clojure.core/get-in > > Also, you don't need to require clojure.core. It is automatically loaded > and referred to. > -- > MK > > http://github.com/michaelklishin > http://twitter.com/michaelklishin > > -- > -- > 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 post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to a topic in the > Google Groups "Clojure" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/clojure/ZreY5nWg0e4/unsubscribe?hl=en. > To unsubscribe from this group and all its topics, send an email to > clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- 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 post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.