1
0
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:
Dr. Carsten Leue
2023-08-04 17:12:24 +02:00
parent 2cd35870cb
commit e53e2c53e8
15 changed files with 383 additions and 49 deletions

View File

@ -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],
)