Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support array arguments as an alternative of vargs #3

Merged
merged 1 commit into from
May 12, 2017

Conversation

Reflejo
Copy link
Contributor

@Reflejo Reflejo commented May 11, 2017

This is useful for generating the feedback list from a function, for example:

protocol SomeGenericModelSystem {
    func feedback() -> [SharedSequence<DriverSharingStrategy, State> -> SharedSequence<DriverSharingStrategy, Event>]
}

...

Driver.system(.., feedback: something.feedback)

This is usefull for generating the feedback list from a function, for
example:

```swift
protocol SomeGenericModelSystem {
    func feedback(Observable<State>) -> [Observable<Event>] {
    }
}

...

Driver.system(.., fedback: somethig.feedback)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants