Flattening multiple subsequent calls to the same method in to one call #4190
Unanswered
evanchooly
asked this question in
Q&A
Replies: 1 comment
-
Hi @evanchooly ; Our Slack #questions channel might get a few more eyeballs to help you out, especially as I'm traveling today and tomorrow still, so I can only provide quick feedback here. Did you already try to visit any It's not a perfect match, but this earlier work came to mind as a sort of similar use case that needs preceding elements to make the change. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What I'm trying to do is perhaps best related by show rather than tell. In essence, I want to pivot to one varargs method (name
pipeline()
) that takes aStage...
vs the current named method per stage approach. At Devnexus, Jonathan's advice on my recipe was to first convert each named stage method to apipeline()
call. Once that is done, condense those back to back calls to just one by collecting all the arguments from of the invocations, reduce it to just one call, and pass in all those arguments.I have the first part done as you can see by the test above. I'm successfully rewriting the stage methods in to
pipeline()
calls but I'm at a loss as to how collect all thepipeline()
calls such that I can condense them in to one. Any advice for me?Beta Was this translation helpful? Give feedback.
All reactions