Lookup-style indexing for arrays