fork download
  1. x<-1:10
  2. for(i in x){
  3. if(i==6){
  4. print('i==6')
  5. break
  6. }
  7. print(i)
  8. }
  9. x
Success #stdin #stdout 0.2s 39084KB
stdin
Standard input is empty
stdout
[1] 1
[1] 2
[1] 3
[1] 4
[1] 5
[1] "i==6"
 [1]  1  2  3  4  5  6  7  8  9 10