title: Questions on how to write a function allLessThan in ML?
body: <p>Write a function <code>allLessThan</code>. It takes two list of integers and test if all integers in the first list are less than all integers in the second list.</p>
  
  <p>For example <code>allLessThan([2,4], [6,7,8])</code> would return true</p>
  
  <p>I've tried to set up the function in terms of letting the sets equal <code>xx</code> and <code>yy</code> so that if every element in <code>xx</code> is less than every element in <code>yy</code> then the function would return true, but if not would return false.</p>
  
  <pre><code>- fun allLessThan([], yy) = true
  =  | allLessThan(xx, []) = false
  =  | allLessThan(x::xRest, y::yRest) 
  </code></pre>