http://package.elm-lang.org/packages/elm-community/maybe-extra/2.0.0/Maybe-Extra#combine
You can also check that function's source code. > Am 08.10.2016 um 17:03 schrieb Max Goldstein <[email protected]>: > > The Elm compiler is correctly telling you that your list is a list of > functions that produce Maybes, but you said you had a list of Maybes. > > If you wanted the first Just regardless of other values: List.filterMap > identity >> List.head > > My advice is to check the lengths of the original list and the filterMap'd > list. If they're equal, take the head of the filterMap'd list. If not, > Nothing. > > -- > 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.
