fork download
  1. object Main extends App {
  2. def g(list:Any):Boolean = {
  3. list match{
  4. case (a::b)::c => true
  5. case _ => false
  6. }
  7. }
  8.  
  9. println(g((1::2::Nil)::3::Nil))
  10. }
Success #stdin #stdout 0.39s 322240KB
stdin
Standard input is empty
stdout
true