Fix Errors in examples for xcode 7 beta 4
This commit is contained in:
parent
470d56a3e9
commit
eeffac4502
|
|
@ -9,7 +9,7 @@
|
|||
import Foundation
|
||||
|
||||
public struct SectionModel<Section, ItemType> : SectionModelType, CustomStringConvertible {
|
||||
typealias Item = ItemType
|
||||
public typealias Item = ItemType
|
||||
public var model: Section
|
||||
|
||||
public var items: [Item]
|
||||
|
|
@ -32,7 +32,7 @@ public struct SectionModel<Section, ItemType> : SectionModelType, CustomStringCo
|
|||
}
|
||||
|
||||
public struct HashableSectionModel<Section: Hashable, ItemType: Hashable> : Hashable, SectionModelType, CustomStringConvertible {
|
||||
typealias Item = ItemType
|
||||
public typealias Item = ItemType
|
||||
public var model: Section
|
||||
|
||||
public var items: [Item]
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@ struct WikipediaSearchResult: CustomStringConvertible {
|
|||
return failure(WikipediaParseError)
|
||||
}
|
||||
|
||||
let titleAndDescription = Array(Zip2(rootArrayTyped[0], rootArrayTyped[1]))
|
||||
let titleDescriptionAndUrl: [((AnyObject, AnyObject), AnyObject)] = Array(Zip2(titleAndDescription, rootArrayTyped[2]))
|
||||
let titleAndDescription = Array(Zip2Sequence(rootArrayTyped[0], rootArrayTyped[1]))
|
||||
let titleDescriptionAndUrl: [((AnyObject, AnyObject), AnyObject)] = Array(Zip2Sequence(titleAndDescription, rootArrayTyped[2]))
|
||||
|
||||
let searchResults: [RxResult<WikipediaSearchResult>] = titleDescriptionAndUrl.map ( { result -> RxResult<WikipediaSearchResult> in
|
||||
let (first, url) = result
|
||||
|
|
|
|||
Loading…
Reference in New Issue