码迷,mamicode.com
首页 >  
搜索关键字:let    ( 14348个结果
Swift Tour 随笔总结 (4)
Switch的一个例子: let vegetable = "red pepper" switch vegetable { case "celery": let vegetableComment = "Add some raisins and make ants on a log." case "cu...
分类:编程语言   时间:2015-01-29 14:02:37    阅读次数:187
[Scheme入门]3 eqv?、loop、let、letrec、do等的比较和使用
一、对象的比较1、eq?这个函数用来比较2个对象的地址,如果相同的话就返回#t。在Scheme中真用#t表示,假则用#f。例如,(eq? str str)返回#t,因为str本身的地址的是一样的,但是"scheme"和"scheme"则被存储在不同的地址中,因此函数返回#f。注意,不要用eq?来比较...
分类:其他好文   时间:2015-01-29 12:01:17    阅读次数:294
8.2 二种记数排序实现
#include #include #include // COUNTING-SORT(A, B, k) // let C[0...k] be a new array // for i = 0 to k // C[i] = 0 // for j = 1 to A.length // C[A[j]] ...
分类:编程语言   时间:2015-01-29 09:19:39    阅读次数:232
Camel概念【Architecture 】
1.4 Camel’s architecture Let’s now turn our attention to Camel’s architecture. We’ll first take a look at the high-level architecture and then drill down into the specific concepts. After you’...
分类:其他好文   时间:2015-01-28 22:41:21    阅读次数:264
十五、自动引用计数 Automatic Reference Counting
1、Swift中的自动引用计数与Objective-C类似,如下面的例子: class Person { let name: String init(name: String) { self.name = name println("\(name) ...
分类:其他好文   时间:2015-01-28 17:43:33    阅读次数:220
字符串和数据类型
【转自】http://www.cnblogs.com/wendingding/p/3884513.html一、字符串字符串是String类型的数据,用双引号""包住文字内容 let website = "http://www.wendingding.com"1.字符串的常见操作(1)用加号 + 做字...
分类:其他好文   时间:2015-01-27 19:58:36    阅读次数:247
Linux shell变量数学运算
Linuxshell变量数学运算Abstract :1) Linux shell 中使用 let , [ ] ,(( )) 三种运算符操作 shell 变量进行简单的基本运算;2)Linux shell 中使用 expr 与 bc 两个程序实现高级运算;1, Linux shell 变量的基本运算数...
分类:系统相关   时间:2015-01-26 18:40:07    阅读次数:232
Sharing
To store English words, one method is to use linked lists and store a word letter by letter. To save some space, we may let the words share the same s...
分类:其他好文   时间:2015-01-26 07:42:23    阅读次数:158
hdu 1004 Let the Balloon Rise
Let the Balloon RiseTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 80469Accepted Submission(s): 3...
分类:其他好文   时间:2015-01-25 23:59:23    阅读次数:430
12.3.3.1 序列表达式中的平面映射
12.3.3.1 序列表达式中的平面映射   假设我们有一个关于城市的元组列表,每个元组包含城市的名字和它所在的国家,另外,我们还有一个列表,是用户所选的城市。因此,我们可以这样表示样本数据:   let cities = [ ("New York","USA"); ("London", "UK");                   ("Cambridge","UK"); ("Ca...
分类:其他好文   时间:2015-01-25 11:09:37    阅读次数:182
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!