Using built-in array functions