title: Find min and max elements of array
body: <p>I want to find the min and max elements of an array using for comprehension. Is it possible to do that with one iteration of array to find both min element and max element?</p>
  
  <p>I am looking for a solution without using scala provided array.min or max. </p>