through the exposed constructor { left, right } or
A Json.Decode.Decoder for Pairs, encoded by encodePair
"""
{
\"left\": 1,
\"right\": 11
}
"""
|>Decode.decodeString
(Pair.decode Decode.int Decode.int)
--> Ok { left= 1, right= 11 }Convert a Pair to a Json.Encode.Value.
Encode.encode 1
(Pair.encode
Encode.int Encode.int
{ left= 1, right= 11 }
)
{->
"""
{
\"left\": 1,
\"right\": 11
}
"""
-}
left&rightas a value-pair To create, use