dest_fun_ty : hol_type -> hol_type * hol_type
# dest_fun_ty `:A->B`;; val it : hol_type * hol_type = (`:A`, `:B`) # dest_fun_ty `:num->num->bool`;; val it : hol_type * hol_type = (`:num`, `:num->bool`) # dest_fun_ty `:A#B`;; Exception: Failure "dest_fun_ty".