File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3228,16 +3228,16 @@ def starmap_indexed(
3228
3228
invoking the indexed mapper function with unpacked elements
3229
3229
of the source.
3230
3230
"""
3231
- from ._map import map_
3231
+ from ._map import map_indexed_
3232
3232
3233
3233
if mapper is None :
3234
3234
return compose (identity )
3235
3235
3236
- def starred (values : Tuple [Any , ...]) -> Any :
3236
+ def starred (values : Tuple [Any , ...], i : int ) -> Any :
3237
3237
assert mapper # mypy is paranoid
3238
- return mapper (* values )
3238
+ return mapper (* values , i )
3239
3239
3240
- return compose (map_ (starred ))
3240
+ return compose (map_indexed_ (starred ))
3241
3241
3242
3242
3243
3243
def start_with (* args : _T ) -> Callable [[Observable [_T ]], Observable [_T ]]:
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ def _identity(value: _T1, _: int) -> _T2:
65
65
66
66
return compose (
67
67
ops .zip_with_iterable (infinite ()),
68
- ops .starmap_indexed (_mapper_indexed ),
68
+ ops .starmap (_mapper_indexed ),
69
69
)
70
70
71
71
You can’t perform that action at this time.
0 commit comments