2,735
次編輯
Tankianting(討論 | 貢獻) |
Tankianting(討論 | 貢獻) |
||
行 38: | 行 38: | ||
<math> | <math> | ||
\begin{align} | \begin{align} | ||
& while(condFunction(x~[,y,...]))\{\\ | & while(condFunction(x~[,y,...]))\{\\ | ||
行 61: | 行 62: | ||
while 迴圈就可以變成新的遞迴函數 <math>recFunc</math>,如下: | while 迴圈就可以變成新的遞迴函數 <math>recFunc</math>,如下: | ||
<math> | |||
\begin{align} | |||
& recFunc(all~x~from~iteratedVarSet)\{\\ | |||
& if(condFunction)\{\\</math> | & if(condFunction)\{\\</math> | ||
& newBodyExp_i\\ | & newBodyExp_i\\ | ||
& return~~recFunc(...)\\ | & return~~recFunc(...)\\ | ||
& \} | & \} | ||
& \} | |||
\end{align} | |||
</math> | |||
==對字串的思考== | ==對字串的思考== |