Instance Method インスタンスメソッド

applying(_:)

Applies the given difference to this collection. 与えられた差異をこのコレクションへと適用します。

Declaration 宣言

func applying(_ difference: CollectionDifference<UInt8>) -> Data?

Parameters パラメータ

difference

The difference to be applied. 適用されることになる差異。

Return Value 戻り値

An instance representing the state of the receiver with the difference applied, or nil if the difference is incompatible with the receiver’s state. 差異を適用されたレシーバの状態を表しているインスタンス、またはnil、もし差異がシレーバのもつ状態と互換性がないならば。

Discussion 議論

Complexity: O(n + c), where n is self.count and c is the number of changes contained by the parameter. 計算量:O(n + c)、ここでnself.countです、そしてcはパラメータによって含まれる変更の数です。