You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Often I will have some function handling a tuple as an intermediate result. It would be nice to have some way to destructure it instead of having to use indices. It makes sense to add this as an additional definition type inside LET/IN blocks, like:
LET
result ==f[x]<<y,z>> == result
IN expr
This would semantically decompose to:
LET
result==f[x]y==result[1]z==result[2]INexpr
Tuple destructuring is present in set map/filter syntax, which is convenient, but it would be nice to have it when dealing with only a single value.
The text was updated successfully, but these errors were encountered:
Often I will have some function handling a tuple as an intermediate result. It would be nice to have some way to destructure it instead of having to use indices. It makes sense to add this as an additional definition type inside LET/IN blocks, like:
This would semantically decompose to:
Tuple destructuring is present in set map/filter syntax, which is convenient, but it would be nice to have it when dealing with only a single value.
The text was updated successfully, but these errors were encountered: