hy/eg/ma-legs.hy
2012-12-18 23:55:50 -05:00

15 lines
344 B
Hy

; 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")
])))