title: Pattern matching on multiple values with a wildcard
body: <p>In Kotlin, we can use <code>when</code> to pattern match on a given value, e.g., </p>
  
  <pre><code>when(value) {
      1 -&gt; "One"
      2, 3 -&gt; "Two or three"
      else -&gt; "The rest"
  }
  </code></pre>
  
  <p>We can also pattern match on multiple values at the same time by nesting the two values in a <code>Pair</code>.</p>
  
  <pre><code>when(Pair(value1, value2)) {
      (1, "One") -&gt; "One"
      (2, "Two"), (3, "Three") -&gt; "Two or three"
      else -&gt; "The rest"
  }
  </code></pre>
  
  <p>Now, I'd like to know how to pattern match on multiple values at the same time with a wildcard. 
  I tried the following two approaches without success:</p>
  
  <pre><code>when(Pair(value1, value2)) {
      (1, _), (_, "One") -&gt; "One"
      (2, _), (_, "Two"), (3, _), (_, "Three") -&gt; "Two or three"
      else -&gt; "The rest"
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>when(Pair(value1, value2)) {
      (1, else), (else, "One") -&gt; "One"
      (2, else), (else, "Two"), (3, else), (else, "Three") -&gt; "Two or three"
      else -&gt; "The rest"
  }
  </code></pre>
  
  <p><strong>How do I match any case for one of the variables?</strong> </p>