We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
第一版 第七次印刷
代码清单6-80,第4行
- fold(0, |acc, x| acc+x) + fold(0, |acc, &x| acc+x)
此处使不使用引用都可以。
但是因为下一页的第一段说:代码 6-80 中 fold 传入的是一个引用,并且后面都是介绍为什么是一个引用的参数。 所以这里的代码应该就是 &x
&x
The text was updated successfully, but these errors were encountered:
No branches or pull requests
页码与行数
第一版 第七次印刷
代码错误
代码清单6-80,第4行
此处使不使用引用都可以。
但是因为下一页的第一段说:代码 6-80 中 fold 传入的是一个引用,并且后面都是介绍为什么是一个引用的参数。
所以这里的代码应该就是
&x
The text was updated successfully, but these errors were encountered: