symmetric_difference 1.0.2
symmetric_difference: ^1.0.2 copied to clipboard
symmetric defference library
Features #
TODO: Just module which solves the problem of the lack of a built-in
symmetric difference in the language
Getting started #
TODO: startin work import package
import 'package:symmetric_difference/symmetric_difference.dart'
Usage #
the main functions for the module operation
Set set1 = {1, 2, 4};
Set set2 = {1, 3, 5};
symmetricDifferenceSET(set1, set2); // 2, 4, 3, 5
a function for finding unique elements in more than two sets or a list
Set set3 = {1, 3, 5, 7};
multiSymmetricDifference([set1, set2, set3]); // 2, 3, 7
by default, intersection=false in the case of true, processing works
differently in the element output mode, we will get only those elements
that available in all listed lists or sets
multiSymmetricDifference([set1, set2, set3], intersection=true); // 1
return type #
it is important that the data being restored will be with the Set data type!!!