Skip to content

Instantly share code, notes, and snippets.

@kaworu
Created November 3, 2017 08:21
Show Gist options
  • Save kaworu/473d2a86aeaac8dc8f6f235768e889d8 to your computer and use it in GitHub Desktop.
Save kaworu/473d2a86aeaac8dc8f6f235768e889d8 to your computer and use it in GitHub Desktop.
BEGIN {
xs["foo"] = 1;
xs["bar"] = 1;
xs["oni"] = 1;
f();
}
function f() {
for (i in xs) {
for (j in xs) {
if (j != i)
delete xs[j]
}
f();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment