Current section

Files

Jump to
plinth src plinth decodex.gleam
Raw

src/plinth/decodex.gleam

import gleam/dynamic/decode
import gleam/int
pub fn float_or_int() {
decode.one_of(decode.float, [decode.map(decode.int, int.to_float)])
}