title: Checking whether a value is of type Vector via pattern matching
body: <p>I need to make a match statement that checks whether the value is Vector or not. The type of elements may differ, I just need to make a case when the input is a Vector. I write the code like this:</p>
  
  <pre><code>symbValue match {
          ......
          case symbValue: Vector[_] =&gt; symbValue.foldleft("")((acc, value) =&gt; ....)
          ......
  </code></pre>
  
  <p>I get the compilation error:</p>
  
  <pre><code>value foldleft is not a member of scala.collection.immutable.Vector[_]
  </code></pre>
  
  <p>How can this type of pattern matching be done? Can it even be done?</p>