tuned;
authorwenzelm
Wed, 12 Apr 2023 11:25:50 +0200
changeset 77837 56d7da3e79fe
parent 77836 9d124714a9e8
child 77838 29146fb57e79
tuned;
src/Pure/General/name_space.ML
--- a/src/Pure/General/name_space.ML	Wed Apr 12 10:52:50 2023 +0200
+++ b/src/Pure/General/name_space.ML	Wed Apr 12 11:25:50 2023 +0200
@@ -435,7 +435,7 @@
 
 (* accesses *)
 
-fun mandatory xs = map_filter (fn (x, true) => SOME x | _ => NONE) xs;
+fun mandatory xs = fold_rev (fn (x, b) => b ? cons x) xs [];
 
 fun mandatory_prefixes xs = mandatory xs :: mandatory_prefixes1 xs
 and mandatory_prefixes1 [] = []