文書 > Swift 標準ライブラリ > Collections > Sequence and Collection Protocols > Sequence > map(_:) > map(_:)
汎用インスタンスメソッド
map(_:)
このシーケンス上の LazyMapSequence を返します。結果の要素は、基本要素に対して transform 関数を呼び出すことによって、読み込まれるたびに遅延して計算されます。
宣言
func map<U>(_ transform: @escaping (Self.Elements.Element) -> U) -> LazyMapSequence<Self.Elements, U>