I have a bunch of JulaiDB tables and I want to save them. To avoid zipping through a list of their variables and an irritatingly similar list of the variables’ names, I’d like to solve this with metaprogramming.
So instead of this:
for (variable, name) in zip((table1, table2, table3), ("table1", "table2", "table3")) save(variable, joinpath(repo, "$name.jldb")) end
it would look something like this (but this doesn’t work):
for s in (:table1, :table2, :table3) @eval save($s, joinpath(repo, "$s.jldb")) end