Question: Which function can do match like this?

like f# do

 

match(tree)

with| verification('hyporesult'(alpha,beta), 'dedeuceto'('Conj'(alpha,beta),gamma) -> 'hyporesult'('Conj'(alpha,gamma),beta)

 

need to get hyporesult is prefix, and then use if the compare, and get first parameter and second parameter such as for 'Conj'(alpha, gamma)

 

i use typefunc('hyporesult'(alpha,beta)) can not get 'hyporesult'

moreover how to get first parameter and second parameter

Please Wait...