I need help for this:
for example:
val myArray= Array(1, 2, 4, 5, -1, -7, 11, 29)
I understand this : myArray.exists( _ < 0 )
And also I can understand this: myArray.count(_ % 2 == 0)
but how I can write at REPL this:
myArray.forall( !xyz(_) ) xyz is this _ % 2 == 0 like above
I get this error:
"error: missing parameter type for expanded function ((x$1: <error>, x$2) => x$1.unary_$bang.$percent(2).$eq$eq(0(x$2)))
myArray.count( !_ % 2 ==0(_) )"
I have Eclipse 4.4. Luna.