aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/Tuple.ml
diff options
context:
space:
mode:
authorEstevan Castilho <tevo@riajuu.net>2026-10-24 01:30:08 +0000
committerEstevan Castilho <tevo@riajuu.net>2026-10-24 01:30:08 +0000
commit0f5161930584eaf91fd195b891ce7d9130c7b7f1 (patch)
treea505f4b7bfe8dc0b0efa06c42b75502aeb2f247a /lib/kernel/Tuple.ml
parent0b1c7ca41a6d8ce41b9783153b567c16250913ff (diff)
downloadRNT-0f5161930584eaf91fd195b891ce7d9130c7b7f1.tar.gz
RNT-0f5161930584eaf91fd195b891ce7d9130c7b7f1.zip
Forsake `fmap`
Diffstat (limited to '')
-rw-r--r--lib/kernel/Tuple.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/kernel/Tuple.ml b/lib/kernel/Tuple.ml
index 41babe9..7cd952e 100644
--- a/lib/kernel/Tuple.ml
+++ b/lib/kernel/Tuple.ml
@@ -67,8 +67,8 @@ module Make (S : Abstract.Storage.STORAGE) = struct
let of_fields data =
let open Utilities.Result in
let open Concepts.Encoding in
- let* type_ = Bencode.field "type" data |> fmap Bencode.as_string in
- let* attributes = Bencode.field "attributes" data |> fmap Value.hash_of_bencode in
+ let* type_ = Bencode.field "type" data |>> Bencode.as_string in
+ let* attributes = Bencode.field "attributes" data |>> Value.hash_of_bencode in
Ok {type_; attributes}
end
@@ -80,7 +80,7 @@ module Make (S : Abstract.Storage.STORAGE) = struct
let node tx {attributes; _} =
let open Utilities.Result in
AttributeM.find tx attributes
- |> fmap (Option.to_result ~none:(Error.incomplete_tuple attributes))
+ |>> Option.to_result ~none:(Error.incomplete_tuple attributes)
let empty tx ~type_ () =
let open Utilities.Result in