I'm struggling to get from Output to Input - speci...
# dotnet
s
I'm struggling to get from Output to Input - specifically I have an
Output<ImmutableArray<x>>
that I want to "map" to an
InputList<y>
(where y is
x.Id
) - there's a step here I'm failing to take (I think I want the opposite of all...). For extra credit in
F#
🙂
t
In C# you can do:
Copy code
Output<ImmutableArray<x>> xs = ...;
InputList<string> ids = xs.Apply(v => v.Select(x => x.Id));
In F# you’d need to convert to input list explicitly
👍 1