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

contains(_:)

Returns a Boolean value indicating whether the given element is contained within the range expression. 与えられた要素がこの範囲式内に含まれるかどうかを指し示すブール値を返します。

Declaration 宣言

func contains(_ element: Self.Bound) -> Bool

Parameters パラメータ

element

The element to check for containment. この要素が含まれるかを調べます。

Return Value 戻り値

true if element is contained in the range expression; otherwise, false. true、もしelementがこの範囲式に含まれるならば;そうでなければ、false