Convenience functions for arrays