dest_const : term -> string * hol_type
- SYNOPSIS
-
Breaks apart a constant into name and type.
- DESCRIPTION
-
dest_const is a term destructor for constants:
returns ("const",`:ty`).
- FAILURE CONDITIONS
-
Fails with dest_const if term is not a constant.
- EXAMPLE
-
# dest_const `T`;;
val it : string * hol_type = ("T", `:bool`)
- SEE ALSO
-
dest_abs, dest_comb, dest_var, is_const, mk_const, mk_mconst, name_of.