changeset 46838 | c54b81bb9588 |
parent 46779 | 4f298836018b |
child 46891 | af4c1dd3963f |
--- 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;