aboutsummaryrefslogtreecommitdiff
path: root/discocaml/arraylist.ml
diff options
context:
space:
mode:
authorNathan Ringo <nathan@remexre.com>2024-01-24 10:52:13 -0600
committerNathan Ringo <nathan@remexre.com>2024-01-24 10:52:13 -0600
commit00d3ea6b17b73594c95318adf266802b02f65abb (patch)
tree37d5053d0a5ba4d06a1fc89c8f70945445c0e28b /discocaml/arraylist.ml
parent6fb1c813dbe2227dab3faac3fc405260be185eca (diff)
Colors for overlapping binders.
Diffstat (limited to 'discocaml/arraylist.ml')
-rw-r--r--discocaml/arraylist.ml1
1 files changed, 1 insertions, 0 deletions
diff --git a/discocaml/arraylist.ml b/discocaml/arraylist.ml
index 110cd17..8979349 100644
--- a/discocaml/arraylist.ml
+++ b/discocaml/arraylist.ml
@@ -56,6 +56,7 @@ let push arraylist x =
arraylist.len <- arraylist.len + 1
let to_array { array; len; _ } = Array.sub array 0 len
+let to_seq arraylist = Array.to_seq (to_array arraylist)
module Array_for_pp = struct
type 'a t = 'a array [@@deriving show { with_path = false }]