Issue 78 in jsoar: make Identifier.getWmes() return an iterable

0 views
Skip to first unread message

js...@googlecode.com

unread,
Feb 8, 2012, 10:35:50 AM2/8/12
to jsoa...@googlegroups.com
Status: New
Owner: marin...@gmail.com
Labels: Type-Enhancement Priority-Medium

New issue 78 by marin...@gmail.com: make Identifier.getWmes() return an
iterable
http://code.google.com/p/jsoar/issues/detail?id=78

Especially for handling output, I want to be able to do something like this:

for(Wme w : myid.getWmes())

But getWmes returns an Iterator, not an Iterable. An Iterable would be
nice. I guess we can't change this actual method without breaking
compatibility, but I argue that we shouldn't care, since anyone who
actually needs an iterator can get it from the Iterable (i.e., they would
just change their code to myId.getWmes().iterator()).

Reply all
Reply to author
Forward
0 new messages