全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Tail call, tail recursion?

又称: tail call · tail recursion

Definition 9.7 University Computer Science — Year 2 · 第 9 章 — Functional Programming

A call is a tail call if it is the last action of the calling function: its result is returned as it is, with nothing left to compute. A function is tail-recursive if its recursive calls are tail calls. A compiler that performs tail-call elimination turns a tail call into a jump, reusing the frame.

在原文中阅读 →