notes

Personal notes
git clone git://git.laack.co/notes.git
Log | Files | Refs

Tuples.md (349B)


      1 # Tuples (Haskell)
      2 
      3 **Source:** Effective Haskell Book
      4 
      5 **Chapter:** 1
      6 
      7 ## Basics
      8 
      9 Tuples in Haskell have a fixed length as opposed to the dynamic length of lists. Additionally, unlike lists, they can contain elements with different types. 
     10 
     11 ## Functions
     12 
     13 - fst:
     14     - Get the first element of a tuple
     15 - snd:
     16     - Get the second element of a tuple