Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: correctly calculate arity of lambda functions #6

Merged
merged 3 commits into from
Sep 22, 2024

Conversation

netomi
Copy link
Contributor

@netomi netomi commented Sep 16, 2024

Currently you cant use a lambda function in combination with functions like map as the arity of the lambda function is calculated in a way that does not work.

This fix uses the suggested method to calculate the number of parameters for a callable, see https://stackoverflow.com/a/41188411

@netomi netomi force-pushed the fix-arity-of-lambda-functions branch from 030a000 to fa0a5fd Compare September 16, 2024 21:26
@rayokota
Copy link
Owner

Thanks @netomi , I'll take a look

Copy link
Owner

@rayokota rayokota left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @netomi , LGTM

@rayokota rayokota merged commit 63d7310 into rayokota:master Sep 22, 2024
12 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants