recursive function
常見例句
- Our next example of a recursive function on lists will be a little more complicated.
我們的下一個基于列表的遞歸函數(shù)示例要稍微復(fù)雜一些。 - The program then seeds the recursive function with the first item on the list and the remaining list.
然后程序以列表中的第一項及其余部分列表為種子開始遞歸函數(shù)。 - You need to do this because your parameter will get clobbered on the recursive function call, and you will need access to it afterwards.
之所以需要這么做是因為參數(shù)會在遞歸函數(shù)調(diào)用上被截斷,而以后卻還需要訪問它。 - This is another way of doing exponentiation, but this one's a recursive function. All right?
但這是一種遞歸的方法對不對?,好,讓我們看看這種方法?
麻省理工公開課 - 計算機科學(xué)及編程導(dǎo)論課程節(jié)選 返回 recursive function