google / schism

A self-hosting Scheme to WebAssembly compiler
Apache License 2.0
1.27k stars 65 forks source link

Equal #108

Closed jitwit closed 4 years ago

jitwit commented 4 years ago

Remove list-all-eq?, add test for equal?, move memq to rnrs.ss

Figured I would do this in the meantime of figuring out how to do the define forms. Two questions:

The equal? doesn't handle cyclic structures or procedures properly, would you want this before merging? It seems hard to do the cyclic structure check efficiently without hashtables.

Would you want other functions that are in rnrs.ss like filter to also move to the library?