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

some-flower-64874

10/28/2020, 10:15 AM
Ok, the magic bit I need is to take advantage of one of these (there are several):
Copy code
public static implicit operator InputList<T>(Output<IEnumerable<T>> values)
            => values.Apply(a => ImmutableArray.CreateRange(a));
asking the question got me closer...
This gives me the following in F#
Copy code
let inputListFromSeq<'a> (values: Output<seq<'a>>) =
        values
        |>  Outputs.apply System.Collections.Immutable.ImmutableArray.CreateRange
        |>  InputList<'a>.op_Implicit
Naming is a bit meh but it achieves the desired result for me.
3 Views