On Fri, Jul 6, 2012 at 3:01 PM, Jamie <jsmo...@gmail.com> wrote: > Here's another clojure.core.logic relation. This time for > > http://api.stlouisfed.org/docs/fred/series_observations.html > > https://gist.github.com/3062006 > > Example: > > The dates and rates of the US 10-year Treasury note when the rates were less > than they were on Monday. > > (clojure.pprint/pprint (sort-by :date (fred-test "DGS10" "2012-07-02"))) > > ;; ({:target "1.61", :date "2012-05-31", :value "1.59"} > ;; {:target "1.61", :date "2012-06-01", :value "1.47"} > ;; {:target "1.61", :date "2012-06-04", :value "1.53"} > ;; {:target "1.61", :date "2012-06-05", :value "1.57"} > ;; {:target "1.61", :date "2012-06-11", :value "1.60"} > ;; {:target "1.61", :date "2012-06-15", :value "1.60"} > ;; {:target "1.61", :date "2012-06-18", :value "1.59"} > ;; {:target "1.61", :date "2012-06-28", :value "1.60"}) > > > Not too many of those. > > --Jamie
Neat! Thanks for sharing these. -- 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