aboutsummaryrefslogtreecommitdiffstats
path: root/lib/concepts/Mode.ml
diff options
context:
space:
mode:
authorMarcos Magueta <maguetamarcos@gmail.com>2026-10-31 02:52:11 -0300
committerMarcos Magueta <maguetamarcos@gmail.com>2026-10-31 02:52:11 -0300
commitdc7d355dbc581c2595a2bba4c377cacb6c2ff696 (patch)
treed53f300d79817fb0bfbdd2b6fbabc59746b112d6 /lib/concepts/Mode.ml
parent55dd8ebfdd2629f97388e52953fe5bbd52733745 (diff)
downloadRNT-dc7d355dbc581c2595a2bba4c377cacb6c2ff696.tar.gz
RNT-dc7d355dbc581c2595a2bba4c377cacb6c2ff696.zip
where modes drop only the attribute its index reads
Diffstat (limited to 'lib/concepts/Mode.ml')
-rw-r--r--lib/concepts/Mode.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/concepts/Mode.ml b/lib/concepts/Mode.ml
index b3031fc..9c5daa9 100644
--- a/lib/concepts/Mode.ml
+++ b/lib/concepts/Mode.ml
@@ -17,5 +17,5 @@ let exhaustible modes bound =
let project attributes = List.filter (fun {bound; _} -> BatSet.String.subset bound attributes)
-let given attributes =
- List.map (fun {bound; yields} -> {bound= BatSet.String.diff bound attributes; yields})
+let given attribute =
+ List.map (fun {bound; yields} -> {bound= BatSet.String.remove attribute bound; yields})