Re: new map type (Re: Ann: SWI-Prolog 7.1.0)

Jan Wielemaker <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On 11/23/2013 11:51 PM, Alan Baljeu wrote:
>>>> plus(Map.key, 2,3)
> 
>>
>> It is equivalent to
>>
>>    get_map_ex(key, Map, V),
>>    plus(V, 2, 3).
> 
> Understood.
> 
>>>> Vector.multiply(V2)
> 
> 
> You still haven't explained this.  Does this mean get_map_ex(multiply, Vector, V2)?

See "5.4.1.1 User defined functions on maps" in
http://www.swi-prolog.org/pldoc/man?section=maps

	Cheers --- Jan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.