I have a function that creates an Async workflow and a function that takes 10 arguments in curry style. eg.
let createSequenceCore abcdefghij = async { ... }
I want to create another function to start a workflow, so I have
let startSequenceCore abcdefghij = Async.StartImmediate (createSequenceCore abcdefghij)
Is there any way to get rid of these redundant parameters? I tried the << operator, but that only allows me to delete it.
let startSequenceCore abcdefghi = Async.StartImmediate << (createSequenceCore abcdefghi)
(I added Haskell and Scala to this question, even if the F # code itself, since really what I want is just how to make this kind of currying that applies to anyone, I would think that Haskell or Scala is the answer will be easily portable to F # and may be marked as the correct answer).
NOTE It is reasonably good to show that there is no easy solution for this, you can also get a reward.
UPDATE geesh. I will not give 100 points to answers that argue with the question, but do not answer it, even if it is considered the highest, so here:
I have a function that creates an Async workflow and a function that takes 4 arguments in curry style. eg.
let createSequenceCore abcd = async { ... }
I want to create another function to start a workflow, so I have
let startSequenceCore abcd = Async.StartImmediate (createSequenceCore abcd)
Is there any way to get rid of these redundant parameters? I tried the << operator, but that only allows me to delete it.
let startSequenceCore abc = Async.StartImmediate << (createSequenceCore abc)