src/Pure/General/properties.ML
author wenzelm
Mon, 19 Nov 2012 20:23:47 +0100
changeset 50126 3dec88149176
parent 46830 224d01fec36d
child 50842 777c6026ca93
permissions -rw-r--r--
theorem status about oracles/futures is no longer printed by default; renamed Proofterm/Thm.status_of to Proofterm/Thm.peek_status to emphasize its semantics;

(*  Title:      Pure/General/properties.ML
    Author:     Makarius

Property lists.
*)

signature PROPERTIES =
sig
  type T = (string * string) list
  val defined: T -> string -> bool
  val get: T -> string -> string option
  val put: string * string -> T -> T
  val remove: string -> T -> T
end;

structure Properties: PROPERTIES =
struct

type T = (string * string) list;

fun defined (props: T) name = AList.defined (op =) props name;
fun get (props: T) name = AList.lookup (op =) props name;
fun put entry (props: T) = AList.update (op =) entry props;
fun remove name (props: T) = AList.delete (op =) name props;

end;