scala infinite loop when replacing concret value by parameter name : I have a problem when trying to replace a concret value by the varibla name winthin an object. the easiest way to explain my problem is that this code works:

    val a = x.map{f =>
      var c : Array[Int] = Array()
      if(f._2.size >= 5){
        c = f._2
      }
      (f._1, c)
    }
But not this one:

    val Eps = 5
    val a = x.map{f =>
      var c : Array[Int] = Array()
      if(f._2.size >= Eps){
        c = f._2
      }
      (f._1, c)
    }
What I obtain in the second cas is an infinte loop.

PS: the code is within a sacal object that is called from the main object.