-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
The following LINQ fails to resolve an appropriate SelectMany method:
from val in Maybe.From("1")
from val2 in Maybe.From("2")
from val3 in new[] { 1, 2, 3}
select val3
We need a method on Maybe that's equivalent to this extension method signature:
public static IEnumerable<TResult> SelectMany<TSource, TOther, TResult>(this Maybe<TSource> source,
Func<TSource, IEnumerable<TOther>> otherSelector,
Func<TSource, TOther, TResult> resultSelector)
An acceptable short-term workaround is to change the Maybe to a List:
from val in Maybe.From("1").ToList()
from val2 in Maybe.From("2")
from val3 in new[] { 1, 2, 3}
select val3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels