CMPS140, Winter 2012, Section 01: Lecture 5

Problem 3.9 in Hw2 is cancelled.

Use mapcar or mapcan!

(mapcan x l) = (apply #'nconc (mapcar x l))

(defun sum-of-squares (l)
       (apply #'+ (mapcar #'(lambda (x) (* x x)) l]

For optional parameters use:

(defun rmv (x l &key key test)...

Learn about:
funcall      (funcall myfun x y)
apply         (apply myfun (list x y))

    performance metric  (used by "us" to determine how agent is doing)
     utility metric      (used by agent to determine how it is doing - may be same as perf. metric)

    autonomy   (changes actions based on environment)
    learn       (autonomous and actions improve with time)