We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9132811 commit 6e88252Copy full SHA for 6e88252
test/SILGen/opaque_values_silgen.swift
@@ -365,8 +365,16 @@ public struct EnumSeq<Base : Seq> : Seq {
365
}
366
367
extension Collection {
368
+ func myMap<T>(_ body: (Element) -> T) -> [T] {
369
+ var result = [T]()
370
+ for element in self {
371
+ result.append(body(element))
372
+ }
373
+ return result
374
375
+
376
func transformEachElement<U>(_ cl: (Element) -> U) -> [U] {
- return map(cl)
377
+ return myMap(cl)
378
379
380
0 commit comments