Imms brings operators to the world of collections, resulting in more meaningful code.
Add §
All collections support +
to add elements. For maps, the elements are key-value pairs.
You can also use +
to join arrays and other collections.
Remove §
Keyed collections support -
to remove specific keys. If the key isn’t found the collection will be returned unchanged.
You can also pass a collection of keys, and Imms will remove all of them. This is the same as the Exclude
operation.
Equality §
All collections meaningfully override equality through both the Equals
method and the ==
operator.
Intersection §
Union §
Union is supported using both |
and +
for sets.
Symmetric difference §