A functional interface similar to Runnable but allows throwing a checked exception. public interface Action { /** * Runs the action and optionally thr ...
分类:
编程语言 时间:
2018-01-22 10:57:17
阅读次数:
181
你可能听说过函数式编程(Functional programming),甚至已经使用了一段时间。 但是,你能说清楚,它到底是什么吗? 网上搜索一下,你会轻松找到好多答案。 与面向对象编程(Object-oriented programming)和过程式编程(Procedural programmin ...
分类:
其他好文 时间:
2018-01-16 11:14:05
阅读次数:
286
诞生50多年之后,函数式编程(functional programming)开始获得越来越多的关注。 不仅最古老的函数式语言Lisp重获青春,而且新的函数式语言层出不穷,比如Erlang、clojure、Scala、F#等等。目前最当红的Python、Ruby、Javascript,对函数式编程的支 ...
分类:
其他好文 时间:
2018-01-16 11:11:02
阅读次数:
178
Tansducer-js lib A high performance Transducers implementation for JavaScript. Transducers are composable algorithmic transformations. They are indepe ...
分类:
Web程序 时间:
2018-01-16 01:01:08
阅读次数:
392
Norvig的cs212真!的!好!难! 考虑先搞点别的,至少学完functional programming再跟。现在是光看懂他的代码都要焚膏继晷,虽然看懂后确实感觉有提升,但是这样子光跟着他的思路就很难了,ps啥的就更是做不出来了,很尴尬。 明天看情况再说。 更新: 决定了!这课先放一放,接下来 ...
分类:
其他好文 时间:
2018-01-13 11:18:29
阅读次数:
144
A number of concepts and paradigms are specific to functional programming, and generally foreign to imperative programming (including object-oriented ...
分类:
其他好文 时间:
2018-01-12 21:15:28
阅读次数:
191
最近在论坛上看到了这个方面的问题,详见这里。 随后浅浅地学习了一下子,看到了Qt官方论坛上给出的说明,觉得C++11的functional连接方法还是比Qt4既有的宏连接方法有很大不同。 官方论坛的文档:http://doc.qt.io/qt-5/signalsandslots-syntaxes.h ...
分类:
编程语言 时间:
2018-01-10 22:47:35
阅读次数:
250
C++的STL从广义上讲分为algorithm(算法),container(容器)和iterator(迭代器)三类,包含了诸多在计算机科学领域里所常用的基本数据结构和基本算法。 在C++标准库中,STL被组织成为下面的13个头文件:<algorithm>, <deque>, <functional> ...
分类:
其他好文 时间:
2018-01-06 17:13:51
阅读次数:
111
https://www.codechef.com/DEC17/problems/VK18 Read problems statements in Mandarin chinese, Russian andVietnamese as well. Chef is so good at programmi ...
分类:
其他好文 时间:
2017-12-19 00:47:26
阅读次数:
226
https://io-meter.com/2016/09/03/Functional-Go-persist-datastructure-intro/ 持久化的数据结构(Persistent Data Structure) 对这类数据结构进行的任何修改,都会返回一个修改后的备份,而不会影响原来结构中的 ...
分类:
其他好文 时间:
2017-12-18 14:23:40
阅读次数:
173