PSYC 315 Lecture Notes - Lecture 1: Common Lisp, Polish Notation

61 views4 pages

Document Summary

Ansi common lisp paul graham: what"s our organization for basics of lisp, lisp expressions, list construction and access, flow of control. Conditionals, iteration, mapping: values and modularity. Break coding up into very small but meaningful sections. Lisp characteristics: functional, functions return values, operate on arguments. Psyc 315: computational psychology: whatever is typed in is evaluated, print results, wait for next instruction, read-eval-print loop at top level, cg-user(1): prompt. In debug window: numbers evaluate to themselves, use debugger window, > 5, 5, > 23, 23. Function calls: cambridge polish notation, parenthesized, prefix notation (function arg1 arg2 argn, superior to conventional (2 + 5 + 8, needlessly repeating the + operator, any number of arguments allowed, > (+ 2 5 8, 15. Needs the arguments, 81 and 12, before + function can be evaluated. Lisp programs: a big function that"s calling a lot of little functions, programs are functions, they may expect 1 or more arguments and always return a value.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers