author | wenzelm |
Thu, 08 Mar 2012 21:35:54 +0100 | |
changeset 46838 | c54b81bb9588 |
parent 46837 | 5bdd68f380b3 |
child 46839 | f7232c078fa5 |
--- a/src/Pure/library.ML Thu Mar 08 19:56:57 2012 +0100 +++ b/src/Pure/library.ML Thu Mar 08 21:35:54 2012 +0100 @@ -470,9 +470,9 @@ let fun get (_: int) [] = NONE | get i (x :: xs) = - case f x - of NONE => get (i + 1) xs - | SOME y => SOME (i, y) + (case f x of + NONE => get (i + 1) xs + | SOME y => SOME (i, y)) in get 0 end; val flat = List.concat;