Created
December 24, 2013 14:56
-
-
Save amontalenti/8114383 to your computer and use it in GitHub Desktop.
Python example of lightweight data modelling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def main(): | |
some_items = [1, 2, 3, 4] | |
for item in some_items: | |
print item | |
some_mapping = {"ST": "started", "IP": "in progress", "DN": "done"} | |
for key, val in some_mapping.iteritems(): | |
print key, "=>", val | |
if __name__ == "__main__": | |
main() |
Thanks @csoma -- based on @jpfuentes2's starting point, I gave my hand to a closer Clojure example here:
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Clojure: