You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

7 lines
386 B

  1. \ifger{Und auch auf unserem \hinline{WeekDay} Typ können wir \emph{pattern matchen}. Wir wollen z.B. herausfinden, ob ein gegebener Tag ein Montag ist:}{And we can again \emph{pattern match} on our \hinline{WeekDay} type. Let's find out if a given day is a Monday:}
  2. \pause
  3. \begin{haskellcode}
  4. isMonday :: WeekDay -> Bool
  5. isMonday Monday = True
  6. isMonday x = False
  7. \end{haskellcode}