We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed88315 commit 7383f52Copy full SHA for 7383f52
pydatastructs/linear_data_structures/arrays.py
@@ -421,6 +421,9 @@ def delete(self, idx):
421
@property
422
def size(self):
423
return self._size
424
+
425
+ def __len__(self):
426
+ return self._num
427
428
def __str__(self):
429
to_be_printed = ['' for _ in range(self._last_pos_filled + 1)]
0 commit comments