done lab3

This commit is contained in:
sofiaivv 2023-12-12 00:38:07 +04:00
parent a17c6a10b9
commit 21b5e3d07b

View File

@ -79,7 +79,7 @@ namespace MotorBoat.Generics
/// <param name="collect"></param> /// <param name="collect"></param>
/// <param name="pos"></param> /// <param name="pos"></param>
/// <returns></returns> /// <returns></returns>
public static T? operator -(BoatsGenericCollection<T, U> collect, int public static bool operator -(BoatsGenericCollection<T, U> collect, int
pos) pos)
{ {
T? obj = collect._collection.Get(pos); T? obj = collect._collection.Get(pos);
@ -87,7 +87,7 @@ namespace MotorBoat.Generics
{ {
collect._collection.Remove(pos); collect._collection.Remove(pos);
} }
return obj; return false;
} }
/// <summary> /// <summary>