aboutsummaryrefslogtreecommitdiff
path: root/kernel/section.ml
diff options
context:
space:
mode:
authorGaëtan Gilbert2019-10-13 16:32:15 +0200
committerGaëtan Gilbert2019-10-14 10:24:26 +0200
commitc3479eceb8e07b37570a80bca9937e3520c61024 (patch)
tree136a1773ad9b1bd1cdecd3db26ca0cc64f4516cf /kernel/section.ml
parent26e8b5a545bcf2209d56494ccf4afe143f761fd7 (diff)
Use kernel info from Global for Lib.sections_{depth,are_opened}
Diffstat (limited to 'kernel/section.ml')
-rw-r--r--kernel/section.ml2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/section.ml b/kernel/section.ml
index babd9fe7a1..a1242f0faf 100644
--- a/kernel/section.ml
+++ b/kernel/section.ml
@@ -43,6 +43,8 @@ let empty = []
let is_empty = List.is_empty
+let depth = List.length
+
let has_poly_univs = function
| [] -> false
| sec :: _ -> sec.has_poly_univs