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
{{ message }}
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.
I think I'm doing it wrong, but I currently find that going back and forth between what is inside a Freya computation and what is outside is causing me a lot of pain.
How do I best compose a function within a freya with an argument from outside the freya:
I'm not totally sure I see how you mean. It seems like if you have external args, just leaving them external is fine - then your string -> string -> Freya<string> would partially apply and be string -> Freya<string>. If your arguments themselves are Freya functions, you probably want to look at some of the other composition functions (and perhaps operators). https://github.com/freya-fs/freya/blob/master/src/Freya.Core/Operators.fs#L27-L52 is what's available out of the box - >>= and >=> are often quite useful, but as soon as you get in to composing Freya functions, simple partial application is less useful (or possible!).
I think I'm doing it wrong, but I currently find that going back and forth between what is inside a Freya computation and what is outside is causing me a lot of pain.
How do I best compose a function within a freya with an argument from outside the freya:
with a normal Non-Freya func I can do:
How do I achieve the same in Freya without a lot of ceremony?
The opposite is easy using Freya.map (or operator)
The text was updated successfully, but these errors were encountered: