Haskell’s `oneOf´ is Elm’s http://package.elm-lang.org/packages/elm-community/random-extra/1.0.0/Random-Extra#choices .
2016-08-07 13:07 GMT+02:00 John Watson <[email protected]>: > Suppose my ADT has four or five constructors and I want to randomly select > one of them with equal likelihood in my Producer. How do I do this? > (Haskell's QuickCheck has *oneOf* for example) > > -- > 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.
