title: How to check if a variable is a list in scala: Any is list?
body: <p>How to check if a variable is a list in scala: Any is list?</p>
  
  <p>I need something like </p>
  
  <pre><code>def isList(variable: Any): Boolean = {
    // code here for returning true or false
  }
  </code></pre>