docarray.array.storage.base.seqlike module#

class docarray.array.storage.base.seqlike.BaseSequenceLikeMixin(*args, **kwds)[source]#

Bases: MutableSequence[docarray.document.Document]

Implement sequence-like methods

insert(index, value)[source]#

Insert doc at index.

Parameters
  • index (int) – Position of the insertion.

  • value (Document) – The doc needs to be inserted.

append(value)[source]#

Append doc to the end of the array.

Parameters

value (Document) – The doc needs to be appended.

clear()[source]#

Clear the data of DocumentArray

extend(values)[source]#

S.extend(iterable) – extend sequence by appending elements from the iterable

Return type

None