Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including @manjalyc/complexset with all npm packages installed. Try it out:

var complexset = require("@manjalyc/complexset")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@manjalyc/complexset v1.0.0

An extension of the normal Set datastructure. Holds unique entries in either normal mode or complement mode. In normal mode, the entries are present in the set (normal behavior of a standard Set). In complement mode, the entries are those which are not present in the Set (the opposite behavior of a Set). This enables a ComplexSet to contain information and support for an implicit, undefined, or yet-to-be constructed Universal Set. This also enables the implementation of the proper absolute complement, not just a relative complement. This package also contains support for unions, intersections, differences, symmetric differences, relative complements, switching to/from complement mode and copying.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free