Skip to content

Instantly share code, notes, and snippets.

@StanAngeloff
Created July 3, 2010 18:51
Show Gist options
  • Save StanAngeloff/462753 to your computer and use it in GitHub Desktop.
Save StanAngeloff/462753 to your computer and use it in GitHub Desktop.
(by_name[name]: [street, city]) for {poet: {name, address: [street, city]}} in futurists
var _a, _b, _c, _d, _e, _f, city, name, street;
_b = futurists;
for (_a = 0, _f = _b.length; _a < _f; _a++) {
_c = _b[_a];
_d = _c.poet;
name = _d.name;
_e = _d.address;
street = _e[0];
city = _e[1];
;
(by_name[name] = [street, city]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment