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.

Reply via email to