Skip to content

Instantly share code, notes, and snippets.

@legumbre
Created June 7, 2013 22:09
Show Gist options
  • Save legumbre/5732760 to your computer and use it in GitHub Desktop.
Save legumbre/5732760 to your computer and use it in GitHub Desktop.
function sequence_item_by_name(sequence_name, group_name, item_name)
return table.find(sequences[sequence_name][group_name],
function (k, item) return type(k)=="number" and item.name==_(item_name) and k end)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment