[mercury-users] field selection question
Terrence Brannon
princepawn at earthlink.net
Thu Jan 1 13:20:41 AEST 1970
In the Mercury Language Reference Manual, the following description is
given of field selection syntax:
field(Term)
However, I would like a concrete example. How would one use the above
syntax on the following discriminated union?
:- type employee
---> employee(
name :: string,
age :: int,
department :: string
).
--------------------------------------------------------------------------
mercury-users mailing list
post: mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the users
mailing list