Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions expression/collections/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from .array import TypedArray
from .block import Block
from .map import Map
from .non_empty_block import NonEmptyBlock
from .seq import Seq


Expand All @@ -13,6 +14,8 @@
"block",
"Map",
"map",
"NonEmptyBlock",
"non_empty_block",
"Seq",
"seq",
"TypedArray",
Expand Down
4 changes: 2 additions & 2 deletions expression/collections/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def indexed(self, start: int = 0) -> Block[tuple[int, _TSource]]:
Returns:
The list of indexed elements.
"""
return of_seq(enumerate(self))
return of_seq(enumerate(self, start=start))

def item(self, index: int) -> _TSource:
"""Indexes into the list. The first element has index 0.
Expand Down Expand Up @@ -515,7 +515,7 @@ def zip(self, other: Block[_TResult]) -> Block[tuple[_TSource, _TResult]]:
"""Zip block.

Combines the two lists into a list of pairs. The two lists
must have equal lengths. .
must have equal lengths.

Args:
other: The second input list.
Expand Down
Loading