DecoderCE
module DecoderCE| Assembly | Ranvier.Wire |
| Attributes | [<AutoOpen>] |
Declared inside
DecoderBuilder | The builder behind decoder |
Functions and values
decoder: DecoderBuilder
decoder: DecoderBuilderCompose decoders. let! runs them one after the other, and! runs them independently.
let pointDecoder =
decoder {
let! x = Decode.field "x" Decode.int
and! y = Decode.field "y" Decode.int
return { X = x; Y = y }
}