77use Fp \Functional \Either \Either ;
88use Fp \Functional \Option \Option ;
99use Fp \Operations \TraverseEitherAccOperation ;
10- use Fp \Operations \TraverseEitherMergeOperation ;
10+ use Fp \Operations \TraverseEitherMergedOperation ;
1111use Fp \Operations \TraverseEitherOperation ;
1212use Fp \Operations \TraverseOptionOperation ;
1313
@@ -132,13 +132,13 @@ function traverseEitherKV(iterable $collection, callable $callback): Either
132132 * Either<non-empty-list<E>, array<TK, TVO>>
133133 * )
134134 */
135- function traverseEitherMerge (iterable $ collection , callable $ callback ): Either
135+ function traverseEitherMerged (iterable $ collection , callable $ callback ): Either
136136{
137- return traverseEitherKVMerge ($ collection , dropFirstArg ($ callback ));
137+ return traverseEitherMergedKV ($ collection , dropFirstArg ($ callback ));
138138}
139139
140140/**
141- * Same as {@see traverseEitherMerge ()}, but passing also the key to the $callback function.
141+ * Same as {@see traverseEitherMerged ()}, but passing also the key to the $callback function.
142142 *
143143 * @template E
144144 * @template TK of array-key
@@ -156,9 +156,9 @@ function traverseEitherMerge(iterable $collection, callable $callback): Either
156156 * Either<non-empty-list<E>, array<TK, TVO>>
157157 * )
158158 */
159- function traverseEitherKVMerge (iterable $ collection , callable $ callback ): Either
159+ function traverseEitherMergedKV (iterable $ collection , callable $ callback ): Either
160160{
161- return TraverseEitherMergeOperation ::of ($ collection )($ callback )->map (asArray (...));
161+ return TraverseEitherMergedOperation ::of ($ collection )($ callback )->map (asArray (...));
162162}
163163
164164/**
0 commit comments