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

SelectMany method #77

Closed
Galad opened this issue Aug 17, 2018 · 0 comments
Closed

SelectMany method #77

Galad opened this issue Aug 17, 2018 · 0 comments

Comments

@Galad
Copy link
Owner

Galad commented Aug 17, 2018

Add SelectMany extension method to actions and questions.

var action = TextContent.Of(target).SelectMany(text => Enter.TheValue(text).Into(otherTarget));

Overloads:

IQuestion<TSource, TResult> SelectMany<TSource, TResult>(this IQuestion<TSource> question, Func<TSource, IQuestion<TResult>> selector);
IAction<TSource, TResult> SelectMany<TSource, TResult>(this IQuestion<TSource> question, Func<TSource, IAction<TResult>> selector);
IAction<TSource, TResult> SelectMany<TSource, TResult>(this IAction<TSource> question, Func<TSource, IAction<TResult>> selector);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant