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 770b60a commit 55f439eCopy full SHA for 55f439e
CHANGELOG.md
@@ -5,6 +5,20 @@
5
6
## Swift 6.0
7
8
+* Closures can now appear in pack expansion expressions, which allows you to
9
+ construct a parameter pack of closures where each closure captures the
10
+ corresponding element of some other parameter pack. For example:
11
+
12
+ ```swift
13
+ struct Manager<each T> {
14
+ let fn: (repeat () -> (each T))
15
16
+ init(_ t: repeat each T) {
17
+ fn = (repeat { each t })
18
+ }
19
20
+ ```
21
22
* [SE-0431][]:
23
You can now require a function value to carry its actor isolation
24
dynamically in a way that can be directly read by clients:
0 commit comments