Skip to content

Commit f7ee2e1

Browse files
committed
[Functions] asPairs and asPairsGenerator.
1 parent 7b54382 commit f7ee2e1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+100
-44
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"src/Fp/Functions/Cast/AsArray.php",
4040
"src/Fp/Functions/Cast/AsBool.php",
4141
"src/Fp/Functions/Cast/AsFloat.php",
42+
"src/Fp/Functions/Cast/AsPairs.php",
4243
"src/Fp/Functions/Cast/AsGenerator.php",
4344
"src/Fp/Functions/Cast/AsInt.php",
4445
"src/Fp/Functions/Cast/AsList.php",

src/Fp/Collections/ArrayList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
use Fp\Streams\Stream;
4343
use Iterator;
4444

45-
use function Fp\Callable\asGenerator;
45+
use function Fp\Cast\asGenerator;
4646

4747
/**
4848
* O(1) {@see Seq::at()} and {@see Seq::__invoke} operations

src/Fp/Collections/HashMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use Fp\Operations\ValuesOperation;
2121
use Generator;
2222

23-
use function Fp\Callable\asGenerator;
23+
use function Fp\Cast\asGenerator;
2424
use function Fp\Cast\asList;
2525

2626
/**

src/Fp/Collections/HashSet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
use Fp\Streams\Stream;
2929
use Iterator;
3030

31-
use function Fp\Callable\asGenerator;
31+
use function Fp\Cast\asGenerator;
3232
use function Fp\Cast\asList;
3333

3434
/**

src/Fp/Collections/LinkedList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
use Fp\Streams\Stream;
4242
use Iterator;
4343

44-
use function Fp\Callable\asGenerator;
44+
use function Fp\Cast\asGenerator;
4545
use function Fp\Cast\asList;
4646

4747
/**

src/Fp/Collections/NonEmptyArrayList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
use Fp\Streams\Stream;
2828
use Iterator;
2929

30-
use function Fp\Callable\asGenerator;
30+
use function Fp\Cast\asGenerator;
3131

3232
/**
3333
* @psalm-immutable

src/Fp/Collections/NonEmptyHashMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Fp\Operations\ValuesOperation;
1515
use Generator;
1616

17-
use function Fp\Callable\asGenerator;
17+
use function Fp\Cast\asGenerator;
1818

1919
/**
2020
* @template TK

src/Fp/Collections/NonEmptyHashSet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use Fp\Streams\Stream;
2222
use Iterator;
2323

24-
use function Fp\Callable\asGenerator;
24+
use function Fp\Cast\asGenerator;
2525
use function Fp\Cast\asNonEmptyList;
2626

2727
/**

src/Fp/Collections/NonEmptyLinkedList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
use Fp\Streams\Stream;
2929
use Iterator;
3030

31-
use function Fp\Callable\asGenerator;
31+
use function Fp\Cast\asGenerator;
3232

3333
/**
3434
* @psalm-immutable

src/Fp/Functional/Monoid/HashMapMonoid.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use Fp\Collections\HashMap;
88

9-
use function Fp\Callable\asGenerator;
9+
use function Fp\Cast\asGenerator;
1010

1111
/**
1212
* @template TK

0 commit comments

Comments
 (0)