On Wed, 14 Jun 2006, Ola Bini defenestrated me: > At 16:15 2006-06-14, you wrote: > >On Wednesday 14 June 2006 09:07, Ola Bini wrote: > > > Hi, > > > > > > I've spent some time today using JRuby to inspect data I get back from > > > EJB's, and I soon got mad about having to use get(0) or iterator.next to > > > get at elements. > > > > > > So, the attached patch makes it possible to use [] and []= for Maps and > > > Lists, and makes <<, + and - available for all Collection's. For me, this > > > makes Java integration MUCH more useable. > > > > > > Regards > > > Ola Bini > > > >I thought we already had this support, as well as them being Enumerables.... > > I couldn't find [] or []= anywhere, and Enumerable, yes, for java.util.Set > and java.util.List, but nothing generic for Collection and no Enumerable > for Map either. > At least not what I could find.
We have been adding these things as it occurs to us to add them. Generally, this means the first person who misses the method ends up adding it. You appear to be the first to really use Maps... -Tom -- + http://www.tc.umn.edu/~enebo +---- mailto:[EMAIL PROTECTED] ----+ | Thomas E Enebo, Protagonist | "Luck favors the prepared | | | mind." -Louis Pasteur | _______________________________________________ Jruby-devel mailing list Jruby-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jruby-devel