the Differences of Fold-left and Fold-right
来源:互联网 发布:淘宝模特保持身材 编辑:程序博客网 时间:2024/06/06 17:01
Fold-left and Fold-right are two frequently used procedures when processing a list. They have the same declarations, but they have different implementations.
The declarations of Fold-left and Fold-right are followed. They combines all of the elements of the-list using the binary operation procedure. If the procedure obeys the associative-law, the fold-right and fold-left will get the same result. If (procedure a (procedure b c)) is equivalent to (procedure (procedure a b) c), then we can say the procedure obeys the associative-law.
Even though fold-left and fold-right behave the same in some cases, the internal calculating process are not the same for such cases. We should know the difference. In essence, fold-left is a iterative process, whereas fold-right is a recursive process.
The mimic implementations for fold-left and fold-right are followed. It is not difficult to make the conclusion.
- the Differences of Fold-left and Fold-right
- SICP 习题2.38 fold-left fold-right
- Fold
- fold
- A collection of iOS7 animation controllers and interaction controllers, providing flip, fold and all
- Sichuan Province 2012 F Fold The Paper
- vim fold
- Fold expressions
- 关于fold
- Rust :fold
- The differences of Iterator and Iterable interface
- eclipse无法加载Layout(Eclipse is loading framework information and the layout library from the SDK fold)
- Fold and unfold a web frame on click
- k-fold cross validation with modelr and broom
- The Differences of Dietary Cultures Between China and the West
- UESTC OJ 88 Fold The Paper(状态压缩啊)
- Why is the fold action necessary in Spark?
- The Differences Of Browsers!
- struct的内存布局
- velocity 手册
- c#泛型的使用(轉)
- CLI 语言一览表
- C/C++一些知识2(指针)
- the Differences of Fold-left and Fold-right
- 反射的使用方法(轉)
- 最适合初学液晶者参考的程序
- 随机散列的实现(VB2005)
- jffs2文件系统不支持export的问题
- 在VC里没有ActiveMovieControl Object这个控件
- 修改网址占位符后的参数
- 我眼中的微软大战略和中国软件之殇
- css+div布局