list-basic.sh 202 B

12345678910111213
  1. Prelude> head []
  2. *** Exception: Prelude.head: empty list
  3. Prelude> tail []
  4. *** Exception: Prelude.tail: empty list
  5. Prelude> tail [1]
  6. []
  7. Prelude> head [1]
  8. 1
  9. Prelude> null []
  10. True
  11. Prelude> null [[]]
  12. False