# HG changeset patch # User wenzelm # Date 1412771670 -7200 # Node ID 8529745af3dccd4b9d0abf6f854878b6c9e4f473 # Parent 08536219d3a23959d362136b85cc0cc10c25281e tuned; diff -r 08536219d3a2 -r 8529745af3dc src/Pure/library.ML --- a/src/Pure/library.ML Wed Oct 08 13:55:43 2014 +0200 +++ b/src/Pure/library.ML Wed Oct 08 14:34:30 2014 +0200 @@ -531,19 +531,19 @@ | map2 f (x :: xs) (y :: ys) = f x y :: map2 f xs ys | map2 _ _ _ = raise ListPair.UnequalLengths; -fun fold2 f [] [] z = z +fun fold2 _ [] [] z = z | fold2 f (x :: xs) (y :: ys) z = fold2 f xs ys (f x y z) - | fold2 f _ _ _ = raise ListPair.UnequalLengths; + | fold2 _ _ _ _ = raise ListPair.UnequalLengths; -fun fold_rev2 f [] [] z = z +fun fold_rev2 _ [] [] z = z | fold_rev2 f (x :: xs) (y :: ys) z = f x y (fold_rev2 f xs ys z) - | fold_rev2 f _ _ _ = raise ListPair.UnequalLengths; + | fold_rev2 _ _ _ _ = raise ListPair.UnequalLengths; -fun forall2 P [] [] = true +fun forall2 _ [] [] = true | forall2 P (x :: xs) (y :: ys) = P x y andalso forall2 P xs ys - | forall2 P _ _ = raise ListPair.UnequalLengths; + | forall2 _ _ _ = raise ListPair.UnequalLengths; -fun map_split f [] = ([], []) +fun map_split _ [] = ([], []) | map_split f (x :: xs) = let val (y, w) = f x;