Set: Difference between revisions

Content added Content deleted
Line 860: Line 860:
You might notice the operator overloading.
You might notice the operator overloading.


(Aside: If one were going to write an ATS implementation of sets as linked lists, it might be well to base the implementation on the reference code for Scheme SRFI-1: [https://srfi.schemers.org/srfi-1/srfi-1-reference.scm]. This is particularly so if the members of the set are "boxed" and have unique addresses.)
(Aside: If one were going to write an ATS implementation of sets as linked lists, it might be well to base the implementation on the reference code for Scheme SRFI-1: [https://srfi.schemers.org/srfi-1/srfi-1-reference.scm]. This is particularly so if an '''eq?'''-like function is possible for set members.)


<lang ATS>(*------------------------------------------------------------------*)
<lang ATS>(*------------------------------------------------------------------*)