Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Swiftのmapからその次へ

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
Avatar for oyuk oyuk
August 04, 2016

 Swiftのmapからその次へ

Avatar for oyuk

oyuk

August 04, 2016
Tweet

More Decks by oyuk

Other Decks in Programming

Transcript

  1. mapͷఆٛΛݟΔ Optional func map<U>(@noescape f: (Wrapped) throws -> U) rethrows

    -> U? Array func map<T>(@noescape transform: (Self.Generator.Element) throws -> T) rethrows -> [T] ObservableType public func map<R>(selector: Self.E throws -> R) -> RxSwift.Observable<R>
  2. ͍͍ͩͨ͜Μͳײ͡ func map<U>(f:T -> U) -> ͋Δ෺<U> Optional func map<U>(@noescape

    f: (Wrapped) throws -> U) rethrows -> U? • Wrapped->Uͷؔ਺ΛWrappedʹద༻ͯ͠U?Λฦ͢ • ͋Δ෺<U>͸͜͜Ͱ͸U?
  3. ͍͍ͩͨ͜Μͳײ͡ func map<U>(f:T -> U) -> ͋Δ෺<U> Array func map<T>(@noescape

    transform: (Self.Generator.Element) throws -> T) rethrows -> [T] • Self.Generator.Element->Tͷؔ਺Λ Self.Generator.Elementʹద༻ͯ͠[T]Λฦ͢ • ͋Δ෺<U>͸͜͜Ͱ͸[U]
  4. ͍͍ͩͨ͜Μͳײ͡ func map<U>(f:T -> U) -> ͋Δ෺<U> ObservableType public func

    map<R>(selector: Self.E throws -> R) -> RxSwift.Observable<R> • Self.E->Rͷؔ਺ΛSelf.Eʹద༻ͯ͠ RxSwift.Observable<R>Λฦ͢ • ͋Δ෺<U>͸͜͜Ͱ͸RxSwift.Observable<R>