Open mlms13 opened 1 year ago
Now that we have a null decoder, we can decode optional values as:
null
let optional = decoder => alt(null |> map(() => None), decoder |> map(Option.pure))
See #124
Now that we have a
null
decoder, we can decode optional values as:See #124