author | Christian Urban <christian dot urban at kcl dot ac dot uk> |
Wed, 28 Sep 2016 06:22:27 +0100 | |
changeset 460 | 01214b7c6131 |
parent 415 | f1be8028a4a9 |
permissions | -rw-r--r-- |
theory Ex2 imports Main begin section {* Proof context data *} ML {* structure My_Data = ProofDataFun(type T = int * string fun init _ = (2, "foo")) *} ML {* My_Data.get @{context} *} ML {* val ctxt0 = @{context} *} ML {* val ctxt1 = ctxt0 |> My_Data.map (fn (i, s) => (i + 1, s ^ "o")) *} ML {* val ctxt2 = ctxt1 |> My_Data.map (fn (i, s) => (i + 1, s ^ "o")) *} ML {* My_Data.get ctxt2 *} end