Skip to content

Beginner question about lambdas #2879

Discussion options

You must be logged in to vote

In your last example you have l2': list a -> ... instead of fun (l2' : list a) -> … so you are indeed writing a function type instead of a function. If you want to write fun only once, then you should write fun (l1' : list a) (l2' : list a) -> ….

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chandradeepdey
Comment options

Answer selected by chandradeepdey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants