Skip to content

Instantly share code, notes, and snippets.

@admhpr
Created September 12, 2018 18:30
Show Gist options
  • Save admhpr/36c20267b8b9d7e556cf309fd93ac525 to your computer and use it in GitHub Desktop.
Save admhpr/36c20267b8b9d7e556cf309fd93ac525 to your computer and use it in GitHub Desktop.
Notes on Comp Sci 61A

Acknowledges that the course is not about Scheme but quickly goes over the syntax

Scheme Syntax

standardised operator position

examples:

  (+ 2 3)
  (abs -4)
  (+ (* 2 3) 8)
  (+ 3 4 5 1)

Operator is applied to arguments

String functions:

  (first 'hello) => h
  (last 'hello)  => o
  (bf 'hello)    => ello
  (butlast 'hello) => hell

time: 14.25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment