Skip to content

Commit

Permalink
one more variant of combineEndo
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrimatti committed Mar 28, 2024
1 parent bf42b01 commit 12e4b38
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/main/java/fi/solita/utils/functional/FunctionalA.java
Original file line number Diff line number Diff line change
Expand Up @@ -882,8 +882,15 @@ public static final <P,T,R> ApplyBi<P,T,T> combineEndo(final Apply<P,? extends A
/**
* @see Functional#combineEndo
*/
public static final <P,T,R> ApplyBi<P,T,T> combineEndo(final Apply<P,? extends Apply<T,T>> f1, final Apply<P,? extends Apply<T,T>> f2, final Apply<P,? extends Apply<T,T>> f3, final Apply<P,? extends Apply<T,T>> f4, final Apply<P,? extends Apply<T,T>>... fs) {
return FunctionalImpl.combineEndo(concat(newList(f1, f2, f3, f4), fs));
public static final <P,T,R> ApplyBi<P,T,T> combineEndo(final Apply<P,? extends Apply<T,T>> f1, final Apply<P,? extends Apply<T,T>> f2, final Apply<P,? extends Apply<T,T>> f3, final Apply<P,? extends Apply<T,T>> f4) {
return FunctionalImpl.combineEndo(newList(f1, f2, f3, f4));
}

/**
* @see Functional#combineEndo
*/
public static final <P,T,R> ApplyBi<P,T,T> combineEndo(final Apply<P,? extends Apply<T,T>> f1, final Apply<P,? extends Apply<T,T>> f2, final Apply<P,? extends Apply<T,T>> f3, final Apply<P,? extends Apply<T,T>> f4, final Apply<P,? extends Apply<T,T>> f5, final Apply<P,? extends Apply<T,T>>... fs) {
return FunctionalImpl.combineEndo(concat(newList(f1, f2, f3, f4, f5), fs));
}


Expand Down

0 comments on commit 12e4b38

Please sign in to comment.