cheatsheet/elm.js
function getSlot(i, a)
{
	var slot = i >> (5 * a.height);
	while (a.lengths[slot] <= i)
	{
		slot++;
	}
	return slot;
}
function getSlot(i, a)
{
	var slot = i >> (5 * a.height);
	while (a.lengths[slot] <= i)
	{
		slot++;
	}
	return slot;
}
function getSlot ( i , a ) { var slot = i >> ( 5 * a . height ) ; while ( a . lengths [ slot ] <= i ) { slot ++ ; } return slot ; }
Calculates in which slot of "table" the item probably is, then find the exact slot via forward searching in  "lengths". Returns the index.
Calculates in which slot of table the item probably is then find the exact slot via forward searching in lengths . Returns the index .