Closed gregberns closed 3 years ago
Haskell has Tuple functions fst, snd to extract the first and second values from the tuple. I'm not seeing it in the docs.
fst
snd
Signatures:
fst :: (a,b) -> a
snd :: (a,b) -> b
Would probably want to add it to all the tuple types: Tuple3.third :: (a,b,c) -> c
Tuple3.third :: (a,b,c) -> c
It is built-in in ReasonML, see the doc.
Duh ... silly me. Any thoughts on adding third, fourth, etc for the tuple variations?
third
fourth
Looks like this was done in #305
Haskell has Tuple functions
fst
,snd
to extract the first and second values from the tuple. I'm not seeing it in the docs.Signatures:
fst :: (a,b) -> a
snd :: (a,b) -> b
Would probably want to add it to all the tuple types:
Tuple3.third :: (a,b,c) -> c