scala>vala=ArrayBuffer[Int](1,2,3,5,-1,2,-3,-5)
a:scala.collection.mutable.ArrayBuffer[Int]=ArrayBuffer(1,2,3,5,-1,2,-3
,-5)
scala>:paste
//Enteringpastemode(ctrl-Dtofinish)
varfoundFirstNegative=false
valkeepIndexes=for(i<-0untila.lengthif!found..
分类:
编程语言 时间:
2017-09-14 23:57:59
阅读次数:
367