title: Get superclasses function in Scala
body: <p>What would be a short functional way to get the superclasses of a given Class instance in Scala?</p>
  
  <p>All I could come up with is this </p>
  
  <pre><code>def supers(cl: Class[_]): List[Class[_]] = {
    cl :: Option(cl.getSuperclass).map(supers).getOrElse(Nil)
  }
  </code></pre>
  
  <p>Does anyone know a shorter form with some fancy functional constructs?</p>