Set: Difference between revisions
Content added Content deleted
Line 859: | Line 859: | ||
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.) |
|||
<lang ATS>(*------------------------------------------------------------------*) |
<lang ATS>(*------------------------------------------------------------------*) |
||
Line 1,639: | Line 1,642: | ||
set2 = set1: false |
set2 = set1: false |
||
(set1 ^ set2) = (set2 ^ set1): true</pre> |
(set1 ^ set2) = (set2 ^ set1): true</pre> |
||
=={{header|AutoHotkey}}== |
=={{header|AutoHotkey}}== |