break.

break. control word is used in 明確 定義(:). It may be used within a for. , while. , or whilst. 控制結構,與goes to end of smallest such enclosing structure. See also continue. .
 

例如:
itn=: 3 : 0                   Inverse triangular number
 s=.0
 for_j.
  i.2e4
 do.
  if. s>:y. do. j break. end.
  s=.j+s
 end.
)

   x=: 10 100 1000 10000
   itn"0 x
5 15 46 142

   ]y=: 2&!^:_1 x
5 14.651 45.2242 141.922

   2!y
10 100 1000 10000

下個前個字彙索引主選單