11. curry化
def inject(arr:Array[Int],initial:Int)(operation: (Int,Int) => Int): Int ={
var carryOver = initial
arr.foreach(element => carryOver = operation(carryOver,element))
carryOver
}
val ar...
分类:
其他好文 时间:
2015-02-01 16:14:36
阅读次数:
235
??
Modeling Simple Dependencies
建模简单的依赖
A common kind of dependency relationship is the connection between a class that uses another class as a parameter to an operation.
To model this u...
分类:
其他好文 时间:
2015-01-30 19:45:06
阅读次数:
139
环境交待:
Linux 6.3
Oracle Rac 11.2.0.4
[root@web1 grid]# /u01/app/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set...
分类:
数据库 时间:
2015-01-29 22:37:01
阅读次数:
1805
序言:查看alert日志,发现很多报错信息:[oracle@localhost trace]$ more alert_powerdes.log*********************************************************************************************************************************...
分类:
其他好文 时间:
2015-01-28 19:50:01
阅读次数:
329
今天查询二个db,出现这个错误,二种方法,一种是把db里的collation改成一样的;如果不方便可以直接在sql语句后面转一下: select * from table where crm_mscrm.dbo.imei.imei_no = csmrep.crmextdb.dbo.imei.imei...
分类:
其他好文 时间:
2015-01-27 23:06:28
阅读次数:
777
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You have t...
分类:
其他好文 时间:
2015-01-27 21:34:02
阅读次数:
173
TheNSOperationQueueclass regulates the execution of a set ofNSOperationobjects. After being added to a queue, an operation remains in that queue until...
分类:
其他好文 时间:
2015-01-27 14:43:59
阅读次数:
319
很多东西已经记不起来了,想到一点写一点,碰到一点写一点,慢慢累积。关于##在宏定义中用于替换传入变量的字符,例如: #define whole_operation(n) do { printf(#n "=%d\n", (n));} while(0);调用whole_operation(5*6), ....
分类:
编程语言 时间:
2015-01-26 19:14:00
阅读次数:
303
Error / Data CodeErrorDescription0LDAP_SUCCESSIndicates the requested client operation completed successfully.1LDAP_OPERATIONS_ERRORIndicates an inter...
分类:
其他好文 时间:
2015-01-26 13:26:05
阅读次数:
204