diff options
| author | Sébastien Dailly <sebastien@dailly.me> | 2026-03-27 08:48:05 +0100 |
|---|---|---|
| committer | Sébastien Dailly <sebastien@dailly.me> | 2026-03-27 08:48:05 +0100 |
| commit | 830e7c5d27d161b91402414e6ecd49f1ed818bfb (patch) | |
| tree | 448864635d29b1ea66424cbb9e0816fbcf1e1907 /lib/model/reference.ml | |
Initial commit
Diffstat (limited to 'lib/model/reference.ml')
| -rw-r--r-- | lib/model/reference.ml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/model/reference.ml b/lib/model/reference.ml new file mode 100644 index 0000000..496eb9d --- /dev/null +++ b/lib/model/reference.ml @@ -0,0 +1,4 @@ +type t = T : t Content.t Lazy.t -> t [@@unboxed] + +let v : (unit -> t Content.t) -> t = fun f -> T (lazy (f ())) +let get : t -> t Content.t = fun (T target) -> Lazy.force target |
