Yup. Thanks! Zinggi <[email protected]> schrieb am Fr., 20. Mai 2016 19:52:
> It is, you just have to create a type for your union type. > e.g. > type Union a b = A a | B b > then you can use e.g. > list : List (Union Int String) > list = [A 1, B "bla"] > > Is that what you wanted? > > On Friday, 20 May 2016 19:41:38 UTC+2, John Orford wrote: >> >> Why isn't something like >> >> List (A | B) >> >> possible? >> > -- > You received this message because you are subscribed to the Google Groups > "Elm Discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
