设为首页 加入收藏

TOP

常用的 74个内置函数(二)
2017-10-09 13:25:47 】 浏览:4564
Tags:常用 内置 函数
ot;
b","a"]) == false //判断序列是否相同 127 ["a","b"].indices == 0..<2 //获取index(indices是index的复数) 128 ["A", "B", "C"].joined(separator: ":") == "A:B:C" //将序列以分隔符串联起来成为字符串 129 Array([2, 7, 0].reversed()) == [0, 7, 2] //逆序,注意返回的并非原类型序列 130 131 // MARK: 常用的 74 个函数 132 /* 133 134 abs(...) 135 advance(...) 136 alignof(...) 137 alignofValue(...) 138 assert(...) 139 bridgeFromObjectiveC(...) 140 bridgeFromObjectiveCUnconditional(...) 141 bridgeToObjectiveC(...) 142 bridgeToObjectiveCUnconditional(...) 143 c_malloc_size(...) 144 c_memcpy(...) 145 c_putchar(...) 146 contains(...) 147 count(...) 148 countElements(...) 149 countLeadingZeros(...) 150 debugPrint(...) 151 debugPrintln(...) 152 distance(...) 153 dropFirst(...) 154 dropLast(...) 155 dump(...) 156 encodeBitsAsWords(...) 157 enumerate(...) 158 equal(...) 159 filter(...) 160 find(...) 161 getBridgedObjectiveCType(...) 162 getVaList(...) 163 indices(...) 164 insertionSort(...) 165 isBridgedToObjectiveC(...) 166 isBridgedVerbatimToObjectiveC(...) 167 isUniquelyReferenced(...) 168 join(...) 169 lexicographicalCompare(...) 170 map(...) 171 max(...) 172 maxElement(...) 173 min(...) 174 minElement(...) 175 numericCast(...) 176 partition(...) 177 posix_read(...) 178 posix_write(...) 179 print(...) 180 println(...) 181 quickSort(...) 182 reduce(...) 183 reflect(...) 184 reinterpretCast(...) 185 reverse(...) 186 roundUpToAlignment(...) 187 sizeof(...) 188 sizeofValue(...) 189 sort(...) 190 split(...) 191 startsWith(...) 192 strideof(...) 193 strideofValue(...) 194 swap(...) 195 swift_MagicMirrorData_summaryImpl(...) 196 swift_bufferAllocate(...) 197 swift_keepAlive(...) 198 toString(...) 199 transcode(...) 200 underestimateCount(...) 201 unsafeReflect(...) 202 withExtendedLifetime(...) 203 withObjectAtPlusZero(...) 204 withUnsafePointer(...) 205 withUnsafePointerToObject(...) 206 withUnsafePointers(...) 207 withVaList(...) 208 209 */

 

首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇swift内存管理中的引用计数 下一篇swift3.0 ?代码创建经典界面的九..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目