-
Notifications
You must be signed in to change notification settings - Fork 31
Conversation
FYI, |
RxAutomaton.podspec needs to be updated to RxSwift 4.0, e.g.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeffreylyg
Hi, thank you for fixes!
Overall looks good to me 👍
Would you mind changing the parts I commented, and also the followings:
- Change target branch to
swift/4.0
- Update
.swift-version
- Update
Package.swift
andPackage.resolved
- (If CI still fails) Comment-out
pod lib lint
in.travis.yml
Demo/ViewController.swift
Outdated
@@ -38,7 +38,7 @@ class AutomatonViewController: UIViewController | |||
{ | |||
return Observable<Int>.interval(interval, scheduler: MainScheduler.instance) | |||
.take(count) | |||
.scan(0) { $0.0 + 1 } | |||
.scan(0) { ($0, $1).0 + 1 } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ x, _ in x + 1 }
looks better.
Sources/Automaton.swift
Outdated
@@ -137,9 +137,9 @@ public final class Automaton<State, Input> | |||
|
|||
// MARK: Private | |||
|
|||
private func _compose<A, B, C>(_ g: @escaping (B) -> C, _ f: @escaping (A) -> B) -> (A) -> C | |||
private func _compose<A, B, C, D>(_ g: @escaping ((B) -> C), _ f: @escaping ((A, D) -> B)) -> ((A, D) -> C) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the use of type parameters in alphabetical order for readability, i.e.:
private func _compose<A, B, C, D>(_ g: @escaping ((C) -> D), _ f: @escaping ((A, B) -> C)) -> ((A, B) -> D)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Now it LGTM 👍
No description provided.