Sha256: 3be11319c07adfdfad38ea91063bdb555c47f3268fe39942fc831a7f96b530d7
Contents?: true
Size: 352 Bytes
Versions: 55
Compression:
Stored size: 352 Bytes
Contents
open Core open Model open Yojson.Basic let optional_int ~(none: int) = function | `Int n when n = none -> "Nothing" | `Int n -> "(Just " ^ Int.to_string n ^ ")" | x -> json_to_string x let edit_expected ~(stringify: json -> string) ~(slug: string) ~(value: json) = match slug with | "hamming" -> optional_int ~none:(-1) value | _ -> stringify value
Version data entries
55 entries across 55 versions & 1 rubygems