Untitled

Run Settings
LanguageScala
Language Version
Run Command
object Main { def main(args: Array[String]) { var a = 0; val numList = List(1,2,3,4,5,6,7,8,9,10); // for 循环 var retVal = for{ a <- numList if a != 3; if a < 8 }yield a // 输出返回值 for( a <- retVal){ println( "Value of a: " + a ); } } }
Editor Settings
Theme
Key bindings
Full width
Lines