tuned;
authorwenzelm
Thu, 08 Dec 2005 20:16:17 +0100
changeset 18376 2ef0183fa20b
parent 18375 99deeed095ae
child 18377 0e1d025d57b3
tuned;
src/Pure/library.ML
--- a/src/Pure/library.ML	Thu Dec 08 20:16:10 2005 +0100
+++ b/src/Pure/library.ML	Thu Dec 08 20:16:17 2005 +0100
@@ -341,10 +341,8 @@
 fun is_none (SOME _) = false
   | is_none NONE = true;
 
-fun perhaps f x =
-  case f x
-   of NONE => x
-    | SOME x' => x';
+fun perhaps f x = the_default x (f x);
+
 
 (* exceptions *)