From 24bb5eab738e291ee170f4fd563f39e33f65f37d Mon Sep 17 00:00:00 2001 From: Estevan Castilho Date: Thu, 17 Sep 2026 03:36:30 +0000 Subject: WIP forsake context --- lib/protocols/Enumerable.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/protocols/Enumerable.ml') diff --git a/lib/protocols/Enumerable.ml b/lib/protocols/Enumerable.ml index e78f265..53db834 100644 --- a/lib/protocols/Enumerable.ml +++ b/lib/protocols/Enumerable.ml @@ -9,7 +9,7 @@ module Error = struct end class type implementation = object - method enumerate : Context.t -> (Handle.t, Concepts.Condition.condition) result + method enumerate : (Handle.t, Concepts.Condition.condition) result end type Handle.protocol += Enumerable of implementation @@ -18,4 +18,4 @@ type t = implementation let make impl = Enumerable (impl :> implementation) let from handle = Handle.into handle (function Enumerable impl -> Some impl | _ -> None) let require handle = from handle |> Option.to_result ~none:(Error.not_enumerable ()) -let enumerate i context = Handle.invoke i (fun o -> o#enumerate context) +let enumerate i = Handle.invoke i (fun o -> o#enumerate) -- cgit v1.2.3