Skip to content

DecoderCE

module DecoderCE
AssemblyRanvier.Wire
Attributes[<AutoOpen>]

Declared inside

DecoderBuilderThe builder behind decoder

Functions and values

decoder: DecoderBuilder

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