lambda
lambda copied to clipboard
Functional patterns for Java
Co-authored-by: Skyler Lutz
I'll split this up into multiple PRs. Mostly creating this draft as a springboard for discussion. Topics addressed: - Override `checkedApply` on SemigroupFactory to help resolve `checkedApply`/`apply` incoherence - Introduced...
Suppose we have the following `IO` tree: ```java IO throwImmediately = IO.throwing(new IllegalStateException("head fell off")); IO parkForever = io((SideEffect) LockSupport::park); throwImmediately.discardL(parkForever).unsafePerformAsyncIO().join(); ``` What should the result be? Should it throw,...
Determine if swapping the order of the arguments in `sequence` buys any better ergonomics due to currying, or if it's a pyrrhic victory due to the current overloading strategy (`sequence(IO::io)`...