docarray.array.storage.memory.seqlike module#

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

Bases: docarray.array.storage.base.seqlike.BaseSequenceLikeMixin

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.

extend(values)[source]#

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

Return type

None