| using each on a list of tables, I'm trying to access a field from each table, as it passes through 'each'. Somehow it seems that accessing tables throuch each isn't the same as accessing them directly. $ arc
(= airports (table))
#hash()
(= (airports "Boston") 'bos)
bos
arc> (each c '(airports) (prn c))
airports
nil
arc> (prn airports)
#hash((Boston . bos))
#hash(("Boston" . bos))
arc> (each c '(airports) (prn (c "Boston")))
Error: "Function call on inappropriate object airports (\"Boston\")"
As you see, (prn mytable) gives a different result than (each c lst (prn c)), and I can't access the tables anymore. Am I on using the wrong syntax? |