Lecture overview -- Keyboard shortcut: 'u'  Previous page: Arithmetic expressions -- Keyboard shortcut: 'p'  Next page: The read-eval-print loop -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home    Lecture 2 - Page 9 : 46
Functional Programming in Scheme
Expressions, Types, and Functions
Equality in Scheme

On this page we will discuss equality functions in Scheme

As most other programming languages, Scheme supports a number of different equivalence predicates

  • The most discriminating

    • eq?

  • The least discriminating - structural equivalence

    • equal?

  • Exact numerical equality

    • =

  • Others

    • eqv? is close to eq?

    • string=? is structural equivalence on strings

y:/Kurt/Files/courses/prog3/prog3-03/sources/notes/includes/equality-sessionA sample interaction using and demonstrating the equivalence functions in Scheme.