return.

return. control word is used in 明確 定義 (:),與exits 動詞, 副詞, or 連接詞.

result of an 明確 定義is result of last executed 句子 that was not in a test block. If re is no such executed 句子, result is i. 0 0 .
 

例如:
f=: 3 : 0
 try.
  if. 0<:y. do. 'positive' return. else. t=.'negative' end.
 catch.
  t=.'caught'
 end.
 'it is ',t
)

   f 7
positive

   f _12
it is negative

   f 'deipnosophist'
it is caught

   (i.0 0) -: 3 : 'return.' 999
1

   g=: 3 : 'if. 13=|y. do. ''triskaidekaphobia'' end.'

   g 13
triskaidekaphobia

   g 5
   (i.0 0) -: g 5
1

下個前個字彙索引主選單