Skip to content

Commit

Permalink
fixes #152
Browse files Browse the repository at this point in the history
  • Loading branch information
SandroMaglione committed Nov 7, 2024
1 parent 2dd28d3 commit 91423d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/fpdart/lib/src/either.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,15 @@ sealed class Either<L, R> extends HKT2<_EitherHKT, L, R>
}
}

/// This method folds the value from right to left.
///
/// Return the result of `f` called with `b` and the value of [Right].
/// If this [Either] is [Left], return `b`.
@override
C foldRight<C>(C b, C Function(C acc, R b) f);

/// This method folds the value from left to right.
///
/// Return the result of `f` called with `b` and the value of [Right].
/// If this [Either] is [Left], return `b`.
@override
Expand Down

0 comments on commit 91423d8

Please sign in to comment.