发布时间:2014-01-14 15:29:16
一,带函数Pred1, all(Pred, List) -> boolean()如果List中的每个元素作为Pred函数的参数执行,结果都返回true,那么all函数返回true,否则返回false例子:lists:all(fun(E) -> true end,[1,2,3,4]).结果true2, any(Pred, List) -> boolean()如果List中至少有一个元素作为Pred函数的参数执行,结果返回true.........【阅读全文】
发布时间:2013-07-24 11:44:22
点击(此处)折叠或打开/* * anyout.cpp * * Created on: 2013-7-15 * Author: root */#include <iostream>#include <vector>#include <str.........【阅读全文】
发布时间:2013-07-24 11:40:48
点击(此处)折叠或打开/* * bind.cpp * * Created on: 2013-7-16 * Author: root */#include <vector>#include <string>#include <iostream>.........【阅读全文】
发布时间:2013-07-24 11:39:32
点击(此处)折叠或打开/* * function2.cpp * * Created on: 2013-7-24 * Author: root */#include <iostream>#include "boost/function.hpp".........【阅读全文】
发布时间:2013-07-24 11:38:10
点击(此处)折叠或打开/* * function.cpp * * Created on: 2013-7-22 * Author: root *//*#include <iostream>#include "boost/function.hpp".........【阅读全文】