Thank you very much for the hint,
Just few more questions about HashMap:
1. I'm changing the values assigned to keys this way:
*myMap.put(key1, value1);*
*myMap.put(key1, value2);*
Is this the right way of doing it?
2. When I keep putting new keys and respective values in the map at some
point I get Exception:
*Uncaught exception at place 0: x10.lang.MultipleExceptions*
*x10.lang.Exception: Your code has a concurrency bug! You updated the
hashmap 9 times since you created the iterator.*
So I shouldn't update the hashmap? What exactly is the problem in such case?
I'm using x10 2.3.1
Thank you.
Best regards,
Olga
On Mon, Dec 1, 2014 at 11:32 PM, David P Grove <gro...@us.ibm.com> wrote:
>
> > From: Olga Gryshchenko <gryshchenko.olg...@gmail.com>
> > To: Mailing list for users of the X10 programming language <x10-
> > us...@lists.sourceforge.net>
> > Date: 11/30/2014 09:14 AM
> > Subject: [X10-users] Analogy to map(C++) or dictionary(python)
> >
> > Hello everyone,
> >
> > Is there something similar to map in C++ or dictionaries in python, in
> x10?
> >
>
> x10.util.HashMap implements the x10.util.Map interface. Provides basic
> hashmap from keys to values and some basic collection operations (size,
> iteration, etc).
>
> --dave
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> _______________________________________________
> X10-users mailing list
> X10-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x10-users
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users