You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
As far as I can tell, expression currently has no way of combining two Result objects.
Describe the solution you'd like
A common way of doing this in functional programming is called apply, which takes a Result[(a)->(b), E] and returns a (Result[a, E])->(Result[b, E]).
This is not included in FSharp.Core, which is probably the reason why it is not included in expression, but then again it is a little harder to implement as an end user in python than it is in F#. So it would be really nice to have this included in the library.
[Edit] defined both result_apply for the case where you pipe a value to a callable:
Is your feature request related to a problem? Please describe.
As far as I can tell,
expression
currently has no way of combining twoResult
objects.Describe the solution you'd like
A common way of doing this in functional programming is called
apply
, which takes aResult[(a)->(b), E]
and returns a(Result[a, E])->(Result[b, E])
.This is not included in
FSharp.Core
, which is probably the reason why it is not included inexpression
, but then again it is a little harder to implement as an end user in python than it is in F#. So it would be really nice to have this included in the library.[Edit] defined both
result_apply
for the case where you pipe a value to a callable:and a
result_apply_to
where you pipe a callable to aResult[value]
:The text was updated successfully, but these errors were encountered: