A generalized interface for array-like objects with views