No problem. You probably also want to read the documentation on types <http://guide.elm-lang.org/types/index.html>, specifically the section about union types <http://guide.elm-lang.org/types/union_types.html>.
On Friday, 20 May 2016 20:11:47 UTC+2, John Orford wrote: > > Yup. Thanks! > > Zinggi <[email protected] <javascript:>> 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] <javascript:>. >> 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.
