I have problem, that can be reduced to following example:
let func a b c = printf "%s %s %s" a b c
let partial = func "a"
let something_that_returns_two_parameters = "b", "c" // what to write here?
something_that_returns_two_parameters |> partial // what to write here?
My expected result is func being called with "a" "b" "c". I can edit last two lines. Is this achievable in some way?
You need to apply the tuple using the ||>
operator:
something_that_returns_two_parameters ||> partial
This operator applies each component of the tuple to the function.
See F# operators for reference.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With