Skip to content

Instantly share code, notes, and snippets.

@housecricket
Created September 26, 2020 05:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save housecricket/323b64a02de216e275ad77491620389f to your computer and use it in GitHub Desktop.
Save housecricket/323b64a02de216e275ad77491620389f to your computer and use it in GitHub Desktop.
look_for_key = function(box) {
for (item in box) {
if (item.is_a_key()) {
print("found the key")
} else {
look_for_key(item)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment