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.
 
 
 

17 lines
553 B

  1. \begin{itemize}
  2. \item What are side effects?
  3. \item What is referential transparency?
  4. \item Can you have referential transparency with side effects?
  5. \item What does the output of a haskell function depend on?
  6. \item What is laziness?
  7. \item When are types checked in haskell?
  8. \item What are the differences between lists and pairs?
  9. \end{itemize}
  10. Does this compile? If not, fix it. Is this a total or a partial function?
  11. \begin{haskellcode}
  12. data IntOrDouble = MkDouble Double
  13. | MkInt Int
  14. f :: Int -> IntOrDouble
  15. f 0 = 0.5
  16. \end{haskellcode}