Type Method 型メソッド

reduce(value:nextValue:)

Combines a sequence of values by modifying the previously-accumulated value with the result of a closure that provides the next value. 以前に集積された値を次の値を提供するあるクロージャの結果で修正することによって、値いくつかからなるあるシーケンスを結合します。

Declaration 宣言

static func reduce(value: inout PreferredColorSchemeKey.Value, nextValue: () -> PreferredColorSchemeKey.Value)

Parameters パラメータ

value

The value accumulated through previous calls to this method. The implementation should modify this value. このメソッドに対する以前の呼び出しを通して蓄積された値。実装は、この値を修正すべきです。

nextValue

A closure that returns the next value in the sequence. あるクロージャ、それはそのシーケンスの中の次の値を返します。

Discussion 議論

This method receives its values in view-tree order. このメソッドは、それの値それらをビューツリーの順番で受け取ります。 Conceptually, this combines the preference value from one tree with that of its next sibling.

See Also 参照

Supporting Types 支援を行う型