diff options
| author | Marcos Magueta <maguetamarcos@gmail.com> | 2026-09-09 21:11:56 -0300 |
|---|---|---|
| committer | Marcos Magueta <maguetamarcos@gmail.com> | 2026-09-11 01:07:39 -0300 |
| commit | 5310ec01d756ca96babe946d44f9f3b093bc4dda (patch) | |
| tree | e1def76aabadc1f3efcf1a6bca70298dec813cfd /lib/protocols/Enumerable.mli | |
| parent | b79224410f469a1cd4ff3be4f8e62d71398109fc (diff) | |
| download | RNT-5310ec01d756ca96babe946d44f9f3b093bc4dda.tar.gz RNT-5310ec01d756ca96babe946d44f9f3b093bc4dda.zip | |
enumerable protocol
Diffstat (limited to '')
| -rw-r--r-- | lib/protocols/Enumerable.mli | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/protocols/Enumerable.mli b/lib/protocols/Enumerable.mli new file mode 100644 index 0000000..4a903f6 --- /dev/null +++ b/lib/protocols/Enumerable.mli @@ -0,0 +1,13 @@ +type t + +class type implementation = object + method enumerate : Context.t -> (Handle.t, Concepts.Condition.condition) result +end + +val make : #implementation -> Handle.protocol +val from : Handle.t -> t Handle.interface option + +val require : Handle.t -> (t Handle.interface, Concepts.Condition.condition) result + +val enumerate : + t Handle.interface -> Context.t -> (Handle.t, Concepts.Condition.condition) result |
