int (Object component, Object key, Object value) { int index = 0; for (Object item = get(component, key); item != null; item = get(item, ":next")) { if (value == item) { return index; } index++; } return -1; }