question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use `flow` with multiple parameters.

See original GitHub issue

I can’t seem to figure out how to use flow with a function that accepts multiple parameters. All examples in the documentation use functions with a single parameter. Here’s a short snippet demonstrating what I’m trying to do:

from returns.pipeline import flow
def add(a, b):
...     return a + b
... 
assert flow(1, 2, add) == 3

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sobolevncommented, Jul 28, 2020

I am closing this one, let’s coordinate in #462

0reactions
sobolevncommented, Jul 28, 2020

Yes. There are two options:

  • solve the issue correctly for nested overloaded by changing how compare works
  • submit my hack with equality check
Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Pass multiple values from PowerApps to Flow
Solved: Hi, I have a PowerApp with a combobox where a user can select 1 to n different companies. I need to pass...
Read more >
Passing Multiple Records to Flow - Salesforce Time
Passing Multiple Records to Flow ... There are many ways to launch a flow. In most of these ways, it is clear how...
Read more >
Power Automate and the Power Apps trigger - part 2 - About365
This blog series will cover the Power Apps trigger in Power Automate. I will describe how you can trigger a flow from your...
Read more >
Customize a Flow URL to Set Variable Values - Salesforce Help
If you want to set multiple variable values, append ? name1 = value1 & name2 = value2 to the end of the flow...
Read more >
Create and Use Parameters in Flows - Tableau Help
Instead of building and maintaining multiple flows, you can now build one flow and use parameters to run the flow with your different...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found