How can I write this code better?

List.map (\a -> match (tagEncoder a)) model


-- additional information
tagEncoder : Tag -> Value
tagEncoder tag =
    Encoder.object [ (tag.field => Encoder.string tag.value) ]

match : Value -> Value
match value =
    object [ ("match" => value) ]

type alias Tag =
    { field : String
    , value : String
    }


I have tried with with 'flip', but wasn't working...


-- 
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