question

0gravity-6401 avatar image
0 Votes"
0gravity-6401 asked BillyAnderson-2557 answered

Discriminated union with list of named fields in tuple

Hi,

In C# I can create a list of tuples with named fields, such as:
new List<(Guid stageId, Guid formId)>()

Is it possible in F# to declare a Discriminated Union with list of tuples with named fields, for example:
type Assignment = Assignment of ((stageId: Guid, formId: Guid) list)* (payload: string)

dotnet-fsharp
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

VancouverPhotoLab-3771 avatar image
0 Votes"
VancouverPhotoLab-3771 answered

We tried with F# to declare but its not possible.

Thanks
VPL


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BillyAnderson-2557 avatar image
0 Votes"
BillyAnderson-2557 answered

Hey VPL

Thanks for your concern but we do not understand your question about F#.. Can you please more clear about your question.

Regards
Billy RP


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.