lec4 Scope functions and data

7 d type attrib name of string age of int dob of

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: / , #+ " +& 1! 4 = : *# ( 9 6 ,& 1! ,: + $ " + + 1! D ' ' ' ' ' ' ' ' ! = . !! ! ; < ; < 89 ; 6 6 < .++ ; < I ;, < . " ;$ < ; 6 < ; < 7/ + , +D $ % 1/ 1 ! - 1! 2" ,: " ,: * #8 ( 6 ,& 1! ,: " ,: " ,: *# ( ,: " & ; $<6" , : 3 ' ' ? 1% + 1 " , ! ! $ + 4 ++ * 7C 4! 4 * 1! type t = C1 of t1 | C2 of t2 | ... | Cn of tn !! . ' ' ' ' ' ' ' ' $ = . ; 7/ +D type attrib = Name of string | Age of int | DOB of int*int*int | Address of string | Height of float | Alive of bool | Phone of int*int | Email of string;' t ." 8 8 8 " " D " / + 1! * , 1! t , 1! t1 ! , 1! t2 ! , 1! tn ! + + + $ $ $ $ $ $ + C1 + C2 + Cn < ; < 89 ; 6 6 < .++ ; < I ; < . " ;$ < ; 6 < ; < ( I / " , 1! attrib C type attrib = Name of string | Age of int | DOB of int*int*int | Address of string | Height of float | Alive of bool | Phone of int*int | Email of string;; # let a1 = Name "Ra...
View Full Document

Ask a homework question - tutors are online