Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

Tuple projection

$
0
0

i miss this sometimes (fst and snd are deprecated i think). but i usually do tuple destructuring, e.g. let (_, x) = tup. but yes, using .1 would be good (as for named tuple fields, i don’t really care for that, to me it looks like namedtuples in python or something, we can just do a type or object for that)


Viewing all articles
Browse latest Browse all 2592

Trending Articles