Programming Languages and Paradigms

(summer semester 2017-2018, moodle)

Resources

Haskell

Prolog

Smalltalk

Haskell Labs

PROLOG LABS

  • Basic relations, Peano numbers [E00.pdf].
  • Lists [E01.pdf].
  • Arithmetic. The accumulator technique [E02.pdf].
  • Quicksort. Flattening nested lists [E03.pdf].
  • Green and red cuts. Difference lists [E04.pdf].
  • Trees and graphs [E05.pdf].

SMALLTALK LABS

  • Installation, initialisation, class and method creation. See moodle.
  • Implementing a stack and a queue; primality testing [notes.pdf].
  • Shuffling a deck of cards [notes.pdf].