diff options
| author | Estevan Castilho <tevo@riajuu.net> | 2026-10-24 01:30:08 +0000 |
|---|---|---|
| committer | Estevan Castilho <tevo@riajuu.net> | 2026-10-24 01:30:08 +0000 |
| commit | 0f5161930584eaf91fd195b891ce7d9130c7b7f1 (patch) | |
| tree | a505f4b7bfe8dc0b0efa06c42b75502aeb2f247a /lib/concepts/Tuple.ml | |
| parent | 0b1c7ca41a6d8ce41b9783153b567c16250913ff (diff) | |
| download | RNT-0f5161930584eaf91fd195b891ce7d9130c7b7f1.tar.gz RNT-0f5161930584eaf91fd195b891ce7d9130c7b7f1.zip | |
Forsake `fmap`
Diffstat (limited to '')
| -rw-r--r-- | lib/concepts/Tuple.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/concepts/Tuple.ml b/lib/concepts/Tuple.ml index c2da77c..dfb7cbe 100644 --- a/lib/concepts/Tuple.ml +++ b/lib/concepts/Tuple.ml @@ -30,8 +30,8 @@ and Body : Encoding.Record.BODY = struct let of_fields data = let open Utilities.Result in - let* type_ = Encoding.Bencode.field "type" data |> fmap Encoding.Bencode.as_string in - let* kvs = Encoding.Bencode.field "attributes" data |> fmap Encoding.Bencode.as_dict in + let* type_ = Encoding.Bencode.field "type" data |>> Encoding.Bencode.as_string in + let* kvs = Encoding.Bencode.field "attributes" data |>> Encoding.Bencode.as_dict in kvs |> List.map (fun (name, v) -> value_of_bencode v |> Result.map (fun v -> name, v)) |> Utilities.List.sequence |
