Haskell Language Tuples (Pairs, Triples, ...)

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Remarks

  • Haskell does not support tuples with one component natively.

  • Units (written ()) can be understood as tuples with zero components.

  • There are no predefined functions to extract components of tuples with more than two components. If you feel that you need such functions, consider using a custom data type with record labels instead of the tuple type. Then you can use the record labels as functions to extract the components.



Got any Haskell Language Question?