Saturday, September 12, 2009

Synergy/DE ls class gets set

In a continuing project, I needed a Set data structure. Sets are similar to lists, but with the additional constraint that they do not contain duplicated elements. I considered creating a new Set class that would impose that constraint, but decided instead to follow the guiding principle of empowering users rather than protecting them from themselves. Thus, I added a few methods to the ls class to support set-like behavior, while not preventing you from doing decidedly anti-setlike things

No comments:

Post a Comment