tuned;
authorwenzelm
Tue, 11 Apr 2006 16:00:06 +0200
changeset 19409 28bf2447c180
parent 19408 9a52d5b7fc27
child 19410 9aef73143169
tuned;
src/Pure/General/graph.ML
--- a/src/Pure/General/graph.ML	Tue Apr 11 16:00:05 2006 +0200
+++ b/src/Pure/General/graph.ML	Tue Apr 11 16:00:06 2006 +0200
@@ -144,10 +144,8 @@
 fun subgraph keys (Graph tab) =
   let
     val select = member eq_key keys;
-    fun subg (k, (i, (preds, succs))) tab' =
-      if select k
-      then tab' |> Table.update (k, (i, (filter select preds, filter select succs)))
-      else tab'
+    fun subg (k, (i, (preds, succs))) =
+      K (select k) ? Table.update (k, (i, (filter select preds, filter select succs)));
   in Table.empty |> Table.fold subg tab |> Graph end;