title: apply multiple filter conditions and produce only one element from a list
body: <p>say for e.g. </p>
  
  <pre><code>scala&gt; case class Entitlement(read: Boolean, edit: Boolean, create: Boolean, delete: Boolean)
  defined class Entitlement
  
  scala&gt; List (Entitlement(read= true, edit = true, create= false, delete =false),Entitlement(read= true, edit = false, create= false, delete =false),Entitlement(read= true, edit = true, create= false, delete =true))
  res0: List[Entitlement] = List(Entitlement(true,true,false,false), 
  Entitlement(true,false,false,false), Entitlement(true,true,false,true))
  </code></pre>
  
  <p>Is there a way to create ONE and ONLY one <code>Entitlement(true,true,false,true)</code> with a single pass of a List <code>res0</code> such that it'll go thru the list and if <code>read=true</code> found that's the final <code>read</code> privilege <code>else default value for read=false</code> - if <code>edit=true</code> found that's the final <code>edit</code> privilege <code>else default value for edit=false</code> and so on. in this toy example <code>create=false</code> in all of the <code>Entitlement</code> elements in the <code>List</code> why final result will be </p>
  
  <pre><code>Entitlement(true,true,false,true)
  </code></pre>