Skip to content

Correctly flatten lambdas passed to lesser arity functions #28

Description

@kjnilsson

Consider a function: f int -> int -> int being passed as a higher order function requiring fewer arguments. This fails as we flatten the lambda into a function with the same arity. Can we inspect the required type and only flatten "as much as needed"?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions