Skip to content

Commit 51f0733

Browse files
committed
Deprecate 'unweave'
1 parent 04517ad commit 51f0733

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Iterable.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,7 @@ public fun <A> Iterable<A>.interleave(other: Iterable<A>): List<A> =
817817
* ```
818818
* <!--- KNIT example-iterable-15.kt -->
819819
*/
820+
@Deprecated("To be removed due to unclear semantics. Please report use cases at https://github.com/arrow-kt/arrow/issues/3675.")
820821
public fun <A, B> Iterable<A>.unweave(ffa: (A) -> Iterable<B>): List<B> =
821822
split()?.let { (fa, a) ->
822823
ffa(a).interleave(fa.unweave(ffa))

arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Sequence.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,7 @@ public fun <A, B, C> Sequence<C>.unalign(fa: (C) -> Ior<A, B>): Pair<Sequence<A>
681681
* ```
682682
* <!--- KNIT example-sequence-13.kt -->
683683
*/
684+
@Deprecated("To be removed due to unclear semantics. Please report use cases at https://github.com/arrow-kt/arrow/issues/3675.")
684685
public fun <A, B> Sequence<A>.unweave(ffa: (A) -> Sequence<B>): Sequence<B> =
685686
split()?.let { (fa, a) ->
686687
ffa(a).interleave(fa.unweave(ffa))

0 commit comments

Comments
 (0)