fork download
  1. object Main extends App {
  2. // your code goes here
  3. val a = List(1,2,3,4)
  4. val b = a.forall{
  5. mem =>
  6. val member = mem*mem
  7. (member == null) || (member < 10)
  8. }
  9. println(b)
  10. }
Success #stdin #stdout 0.4s 381952KB
stdin
Standard input is empty
stdout
false