diff -r 238c563bbe86 -r 0c3c55b7c98f doc-src/IsarAdvanced/Codegen/Thy/examples/collect_duplicates.ML --- a/doc-src/IsarAdvanced/Codegen/Thy/examples/collect_duplicates.ML Fri May 25 21:08:45 2007 +0200 +++ b/doc-src/IsarAdvanced/Codegen/Thy/examples/collect_duplicates.ML Fri May 25 21:08:46 2007 +0200 @@ -4,8 +4,8 @@ structure Code_Generator = struct -type 'a eq = {op_eq : 'a -> 'a -> bool}; -fun op_eq (A_:'a eq) = #op_eq A_; +type 'a eq = {eq : 'a -> 'a -> bool}; +fun eq (A_:'a eq) = #eq A_; end; (*struct Code_Generator*) @@ -13,7 +13,7 @@ struct fun memberl A_ x (y :: ys) = - Code_Generator.op_eq A_ x y orelse memberl A_ x ys + Code_Generator.eq A_ x y orelse memberl A_ x ys | memberl A_ x [] = false; end; (*struct List*)