Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii committed May 7, 2024
1 parent a0bc884 commit 27bbde8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/Verge/Store/StoreDriverType+Accumulator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ public struct SinkComponentBuilder<Source> {
return SinkGroup<Source, (repeat each S)>(
component: (repeat each sinks),
receiveSource: { source, component in
// Waiting https://www.swift.org/blog/pack-iteration/
func iterate<T: Sink>(_ left: T) -> T {
return left.receive(source: source as! ReadingBox<T.Source>)
}
Expand All @@ -173,6 +174,7 @@ public struct SinkComponentBuilder<Source> {
return modified
},
receiveOther: { other, current in
// Waiting https://www.swift.org/blog/pack-iteration/
func iterate<T: Sink>(other: consuming T, current: consuming T) -> T {
return current.receive(other: other)
}
Expand All @@ -182,6 +184,7 @@ public struct SinkComponentBuilder<Source> {
return modified
},
consume: { component in
// Waiting https://www.swift.org/blog/pack-iteration/
func iterate<T: Sink>(_ component: consuming T) -> T {
return component.consume()
}
Expand Down

0 comments on commit 27bbde8

Please sign in to comment.