title: Kotlin - filtering a list of objects by comparing to a list of properties
body: <p>I have a class Person:</p>
  
  <pre><code>class Person(var fullName: String, var nickname: String, var age: Int)
  </code></pre>
  
  <p>In my code, at some point I have a List of Person objects, and a list of nicknames.</p>
  
  <pre><code>var people: List&lt;Person&gt; = listOf(
    Person("Adam Asshat", "dontinviteme", 21),
    Person("Bob Bowyer", "bob", 37),
    Person("Emily Eden", "emily", 22)
  )
  
  var invitedToParty: List&lt;String&gt; = listOf("bob", "emily")
  </code></pre>
  
  <p>Now I want to get a List with only Bob and Emily by using lambda's, but I'm not sure how I'd go about it in Kotlin.</p>
  
  <pre><code>var invitedPeople: List&lt;Person&gt; = // a lambda that results in a list containing only Bob and Emily's objects
  </code></pre>
  
  <p>In C# I'd probably use LINQ and a .where()-method combined with an == any() but Kotlin doesn't seem to have anything like that from what I've found.</p>
  
  <p>Is this even possible in Kotlin lambda's?</p>