Discriminated union with list of named fields in tuple

0-gravity 1 Reputation point
2021-04-27T21:12:23.187+00:00

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)

.NET F#
.NET F#
.NET: Microsoft Technologies based on the .NET software framework.F#: A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
92 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vancouver Photo Lab 1 Reputation point
    2021-11-16T23:16:57.79+00:00

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

    Thanks
    VPL

    0 comments No comments

  2. Billy Anderson 1 Reputation point
    2022-01-19T03:48:21.583+00:00

    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

    0 comments No comments