simpler code
authorblanchet
Mon, 02 Dec 2013 20:31:54 +0100
changeset 54614 689398f0953f
parent 54613 985f8b49c050
child 54615 62fb5af93fe2
simpler code
src/HOL/BNF/Tools/bnf_fp_rec_sugar_util.ML
--- a/src/HOL/BNF/Tools/bnf_fp_rec_sugar_util.ML	Sun Dec 01 19:32:57 2013 +0100
+++ b/src/HOL/BNF/Tools/bnf_fp_rec_sugar_util.ML	Mon Dec 02 20:31:54 2013 +0100
@@ -28,7 +28,8 @@
 structure BNF_FP_Rec_Sugar_Util : BNF_FP_REC_SUGAR_UTIL =
 struct
 
-fun indexed xs h = let val h' = h + length xs in (h upto h' - 1, h') end;
+fun indexe _ h = (h, h + 1);
+fun indexed xs = fold_map indexe xs;
 fun indexedd xss = fold_map indexed xss;
 fun indexeddd xsss = fold_map indexedd xsss;
 fun indexedddd xssss = fold_map indexeddd xssss;