mirror of
https://github.com/IBM/fp-go.git
synced 2025-07-17 01:32:23 +02:00
fix: more iterator functions
Signed-off-by: Dr. Carsten Leue <carsten.leue@de.ibm.com>
This commit is contained in:
@ -76,8 +76,9 @@ func isPrimeNumber(num int) bool {
|
||||
|
||||
func TestFilterMap(t *testing.T) {
|
||||
|
||||
it := F.Pipe2(
|
||||
MakeBy(100, utils.Inc),
|
||||
it := F.Pipe3(
|
||||
MakeBy(utils.Inc),
|
||||
Take[int](100),
|
||||
FilterMap(O.FromPredicate(isPrimeNumber)),
|
||||
ToArray[int],
|
||||
)
|
||||
|
Reference in New Issue
Block a user