Closed Guest0x0 closed 1 month ago
[!IMPORTANT]
Review skipped
Auto reviews are disabled on this repository.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This PR change the internal representation of
Iter
from(() -> IterResult) -> IterResult
to(() -> Unit!Error) -> Unit!Error
. This brings several benefits:each_err
andfold_err
are easier to implementIter
, via different error constructors. For example the implementation oftake
andtakeWhile
can be simplified!
makes writingIter
s a lot simpler