Oh, and I'm obliged to say: this function will never terminate if you pass it the wrong predicate, so be careful about that!
"Wrong" might mean unsatisfiable (or always satisfied, depending on how you want it to work), or not satisfied by any element generated, for example, (\n -> n > 100) for (Random.int 0 100). -- 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.
