On this page:
pair:  eq?
vector:  equal?
simple:  equal?

2.2 equals🔗

 (require sicm/general/equals) package: rktsicm

This module defines some new equality tests that where introduced after MIT-Scheme 11.2 updated its definition of equal?. While in rktsicm no improvements where noted when changing to the below equality tests, they are implemented and used to keep the source code in line with the original as much as possible.

procedure

(pair:eq? x y)  boolean?

  x : pair?
  y : pair?
Check that the car and cdr of two pairs ar eq?.

procedure

(vector:equal? x y)  boolean?

  x : vector?
  y : vector?
Check that two vectors are simple:equal?

procedure

(simple:equal? x y)  boolean?

  x : any/c
  y : any/c
Equality check that returns #t if both objects are one of: