对于函数式语言来说,函数也想普通的数据类型一样无处不在。函数即可以当成参数进行传递,也可以当成函数的返回值。当我第一次学习函数式编程的时候,我被这样的写法弄的头昏脑涨。下面我举例说明下(例子摘录自Learn You Some Erlang): 假如你想对一个列表中的所有值都进行加1或减1的操作...
分类:
其他好文 时间:
2014-06-25 21:50:31
阅读次数:
244
I can feel that I am making great progress now.. if inspected closely, it is obvious that what I'm getting through is, a newbie phase:coding details m...
分类:
其他好文 时间:
2014-06-25 18:23:24
阅读次数:
206
I experienced this error while trying to alter one of my stored procedures remotely on a master server. After some research, I ended up getting inform...
分类:
数据库 时间:
2014-06-25 15:34:33
阅读次数:
471
Microsoft has an article that explains how to automate PowerPoint using VBFor some odd reason they've entitled it How to automate Powerpoint using VB....
分类:
其他好文 时间:
2014-06-25 14:28:25
阅读次数:
157
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i...
分类:
其他好文 时间:
2014-06-25 09:17:03
阅读次数:
159
【问题】
Evaluate the value of an arithmetic expression in Reverse Polish Notation.
Valid operators are +, -, *, /.
Each operand may be an integer or another expression.
Some examples:
...
分类:
编程语言 时间:
2014-06-24 23:22:53
阅读次数:
331
在官方文档中,看到这句。但不明白什么意思。let vegetable = "red pepper"switch vegetable { case "celery": let vegetableComment = "Add some raisins and make...
分类:
其他好文 时间:
2014-06-24 22:52:30
阅读次数:
400
题目
Reverse digits of an integer.
Example1: x = 123, return 321
Example2: x = -123, return -321
Have you thought about this?
Here are some good questions to ask before coding. Bonus poin...
分类:
其他好文 时间:
2014-06-24 20:16:39
阅读次数:
180
Reverse digits of an integer.
Example1: x = 123, return 321
Example2: x = -123, return -321
Have you thought about this?
Here are some good questions to ask before coding. Bonus points for y...
分类:
其他好文 时间:
2014-06-22 09:31:16
阅读次数:
220
Inflate() method can find out a layout defined by xml,as like the findViewById() method,but there have some different between them.
The different are:
If your Activity used other layout,such as...
分类:
移动开发 时间:
2014-06-22 06:41:43
阅读次数:
362