Well, I had kind of found a workaround (changing the return type to
return the element and not the index) which I didn't like too much (what
if there are duplicates?).
Now that I've found a "proper" workaround.... well, I'm still interested
in knowing the reason, if possible, or if it's a bug.
On 06/12/2017 09:49 PM, ketmar wrote:
yeah, sorry for not proposing a workaround: i thought that you already
did it, and now you're just interested why the original code doesn't
work. ;-)
i think that this is a bug (or, rather, unimplemented feature).