File: mk_fun_ty.doc

package info (click to toggle)
hol-light 20170109-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 36,568 kB
  • ctags: 8,549
  • sloc: ml: 540,018; cpp: 439; lisp: 286; java: 279; makefile: 262; sh: 229; yacc: 108; perl: 78; ansic: 57; sed: 39
file content (27 lines) | stat: -rw-r--r-- 503 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
\DOC mk_fun_ty

\TYPE {mk_fun_ty : hol_type -> hol_type -> hol_type}

\SYNOPSIS
Construct a function type.

\DESCRIBE
The call {mk_fun_ty ty1 ty2} gives the function type {ty1->ty2}. This is an 
exact synonym of {mk_type("fun",[ty1; ty2])}, but a little more convenient.

\FAILURE
Never fails.

\EXAMPLE
{
  # mk_fun_ty `:num` `:num`;;
  val it : hol_type = `:num->num`
  
  # itlist mk_fun_ty [`:A`; `:B`; `:C`] `:bool`;;
  val it : hol_type = `:A->B->C->bool`
}

\SEEALSO
dest_type, mk_type.

\ENDDOC