


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This course is an introduction to concepts in programming languages. The course covers a range of programming paradigms including procedural, functional, and logic-based languages. This lecture includes: Prolog Intro, Haskell Pattern Matching, Haskell Guards, Haskell User-Defined Data Types, Haskell Higher-Order Functions
Typology: Study notes
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Today ...
Logic Refresher. Draw truth tables for:
What do the following mean?
Make each of these true for the domain {Alice, Bob}
Prolog programs are built from “terms” A term is either:
Onto Prolog Programming Semantics Consider the following rule: p(X,Z) :- q(X,Y), r(Y,Z).
Two ways to “view” (conceptualize) a prolog program: