([NSSet -anyObject]): Implemented.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1872 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1996-10-25 23:50:37 +00:00
parent e1f53b0bc0
commit d3f7feddf5

View file

@ -201,7 +201,13 @@ static Class NSMutableSet_concrete_class;
- anyObject
{
return [self notImplemented:_cmd];
if ([self count] == 0)
return nil;
else
{
id e = [self objectEnumerator];
return [e nextObject];
}
}
- (BOOL) containsObject: anObject