Skip to content

Instantly share code, notes, and snippets.

@rf-
Created December 30, 2013 08:56
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 rf-/882121c30ec6ffc178c7 to your computer and use it in GitHub Desktop.
Save rf-/882121c30ec6ffc178c7 to your computer and use it in GitHub Desktop.
cljs.core.array_map_index_of_keyword_QMARK_ = function(arr, _, keyword) {
var len = arr.length;
var fqn = keyword.fqn;
for (var i = 0;;) {
if (len <= i) {
return -1;
}
var entry = arr[i];
if (entry instanceof cljs.core.Keyword && fqn === entry.fqn) {
return i;
}
if (cljs.core.constant$keyword$6) {
i += 2;
} else {
return null;
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment