Skip to content

Commit c4bd554

Browse files
committed
Changed calls from P1.fmap to P1.map_
1 parent 9853c6a commit c4bd554

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/main/java/fj/control/parallel/Strategy.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public <B> F<F<B, A>, F<Array<B>, Array<A>>> parMapArray1() {
219219
public static <A, B> P1<List<B>> parFlatMap(final Strategy<List<B>> s,
220220
final F<A, List<B>> f,
221221
final List<A> as) {
222-
return P1.fmap(List.<B>join()).f(s.parMap(f, as));
222+
return P1.map_(List.<B>join()).f(s.parMap(f, as));
223223
}
224224

225225
/**
@@ -233,7 +233,7 @@ public static <A, B> P1<List<B>> parFlatMap(final Strategy<List<B>> s,
233233
public static <A, B> P1<Array<B>> parFlatMap(final Strategy<Array<B>> s,
234234
final F<A, Array<B>> f,
235235
final Array<A> as) {
236-
return P1.fmap(Array.<B>join()).f(s.parMap(f, as));
236+
return P1.map_(Array.<B>join()).f(s.parMap(f, as));
237237
}
238238

239239
/**
@@ -248,7 +248,7 @@ public static <A, B> P1<Array<B>> parFlatMap(final Strategy<Array<B>> s,
248248
public static <A> P1<List<A>> parListChunk(final Strategy<List<A>> s,
249249
final int chunkLength,
250250
final List<P1<A>> as) {
251-
return P1.fmap(List.<A>join()).f(s.parList(as.partition(chunkLength).map(P1.<A>sequenceList())));
251+
return P1.map_(List.<A>join()).f(s.parList(as.partition(chunkLength).map(P1.<A>sequenceList())));
252252
}
253253

254254
/**

0 commit comments

Comments
 (0)