From 9c58c196c82fbe8dc316f69a0b35b4b91642ef7a Mon Sep 17 00:00:00 2001 From: Paul Tagliamonte Date: Tue, 18 Dec 2012 23:55:50 -0500 Subject: [PATCH] python-sunlight example --- eg/ma-legs.hy | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 eg/ma-legs.hy diff --git a/eg/ma-legs.hy b/eg/ma-legs.hy new file mode 100644 index 0000000..d8d5e1c --- /dev/null +++ b/eg/ma-legs.hy @@ -0,0 +1,14 @@ +; vim: tabstop=2 expandtab shiftwidth=2 softtabstop=2 filetype=lisp +; Copyright (c) Paul Tagliamonte, in sofar as any of this is at all +; copyrightable. + +(import ["sunlight"]) + + +(foreach + (kwapply (sunlight.openstates.legislators) {"state" "ma"}) + (fn [x] (print [ + (get x "first_name") + (get x "last_name") + (get x "party") + ])))