https://pulumi.com logo
#dotnet
Title
# dotnet
s

some-flower-64874

10/28/2020, 9:46 AM
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

tall-librarian-49374

10/28/2020, 11:32 AM
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