Destructuring in lambda function headers #455

Open
opened 2023-05-30 00:23:42 +09:00 by zxq9 · 0 comments
zxq9 commented 2023-05-30 00:23:42 +09:00 (Migrated from gitlab.com)

Created by: seanhinde

This doesn't work today:

...
let x = [(1,2), (3,4)]
List.map((a,b) => a + b, x)

but this does:

...
let x = [(1,2), (3,4)]
List.map(yy, x)
...
function yy((a,b)) = a + b

Would be good to support destructuring in lambda function headers

*Created by: seanhinde* This doesn't work today: ``` ... let x = [(1,2), (3,4)] List.map((a,b) => a + b, x) ``` but this does: ``` ... let x = [(1,2), (3,4)] List.map(yy, x) ... function yy((a,b)) = a + b ``` Would be good to support destructuring in lambda function headers
Sign in to join this conversation.
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: QPQ-AG/sophia#455
No description provided.