Re: mutable object model
Salvador Fandino <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
----- Original Message ----- > From: Alan Baljeu <[email protected]> > To: Jan Wielemaker <[email protected]>; Torbjörn Lager <[email protected]> > Cc: Prolog <[email protected]> > Sent: Wednesday, November 13, 2013 4:05 PM > Subject: Re: [SWIPL] mutable object model > > By "map" do you mean a special term, stored in a local variable? > Which operations would be supported: > map_add(+map, +key, ?term) > map_find(+map, +key, -term) > map_delete(+map, +key) > map_replace(+map, +key, ?term) > map_list(+map, -list) > > When about is the next major version? See https://github.com/salva/salva-prolog-modules/blob/master/hashtable.pl for a hashtable implementation supporting most (all?) of the operations you have enumerated.