Anonymous user
Set consolidation: Difference between revisions
→{{header|Ela}}
(J: simplify) |
|||
Line 266:
=={{header|Ela}}==
This solution emulate sets using linked lists:
<lang ela>open
Usage:
In this example sets are filled with variants (somewhat similar to atoms in Lisp). One can use any other values (such as strings or chars) as well.
<lang ela>open
consolidate [[H,I,K], [A,B], [C,D], [D,B], [F,G,H]] |> writen $
|