Maps collection item metadata with index to an Int. Unlike (Int, T) -> Int, this compiles to a primitive int return and avoids boxing when invoked for every item.
(Int, T) -> Int
int