[mercury-users] using some [ ... ] in function definition

Ralph Becket rafe at csse.unimelb.edu.au
Fri Aug 10 10:52:18 AEST 2007


Ondrej Bojar, Friday, 10 August 2007:
> Hi, all.
> 
> Is there a concise way to use some [ ... ] in function definitions?
> 
> I'd like to be able to type something like:
> 
> some[!D]
> my_func(In) = !.D :-
>   !:D = new,
>   modify(In, !D).

This should work:

my_func(In) = !:D :-
	!:D = new,
	modify(In, !D).

-- Ralph
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to:       mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions:          mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the users mailing list