- 授权协议: BSL
- 开发语言: C/C++
- 操作系统: 跨平台
- 软件首页: https://github.com/Dobiasd/FunctionalPlus
软件介绍
FunctionalPlus 是一个小的表头库,它可以降低代码噪声,一次只处理一个单一等级的的抽象对象。通过增加你的代码的简洁性和可维护性来提高生产效率和编码乐趣。从长远的角度来看,它可以通过提供易于使用的功能将你从实现控制的流中解放出来。
示例代码:
#include "FunctionalPlus/FunctionalPlus.h"#include <iostream>
// std::list<std::uint64_t> CollatzSeq(std::uint64_t x) { ... }int main()
{ using namespace FunctionalPlus;
using namespace std;
typedef list<uint64_t> Ints;
// [1, 2, 3 ... 29]
auto numbers = GenerateIntegralRange<Ints>(1, 30);
// A function that does [1, 2, 3, 4, 5] -> "[1 => 2 => 3 => 4 => 5]"
auto ShowInts = Bind1of2(ShowContWith<Ints>, " => ");
// A composed function that calculates a Collatz sequence and shows it.
auto ShowCollatsSeq = Compose(CollatzSeq, ShowInts);
// Apply it to all our numbers.
auto seqStrs = Transform(ShowCollatsSeq, numbers);
// Combine the numbers and their sequence representations into a map.
auto collatzDict = CreateMap(numbers, seqStrs);
// Print some of the sequences.
cout << collatzDict[13] << endl;
cout << collatzDict[17] << endl;
}
精彩绝伦的CSS
[美] Eric A. Meyer / 姬光 / 人民邮电出版社 / 2012-7 / 49.00元
内容简介: 打造现代布局的专业技术 本书远非只是介绍基础知识,它不仅全面细致地讲解布局与效果,而且展望了HTML5和CSS3的未来。业内很少有人能像Eric A. Meyer一样详细阐明CSS,他在本书中深入分析了普遍适用的实用技术,讲解了如何选用正确的工具、如何通过jQuery使用CSS效果和CSS3技术。 本书主要内容如下: 显示或隐藏元素 通过XHTML为bod......一起来看看 《精彩绝伦的CSS》 这本书的介绍吧!
