hy/eg/ma-legs.hy

15 lines
344 B
Hy
Raw Normal View History

2012-12-19 05:55:50 +01:00
; 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")
])))