difference method

Set<E> difference(
  1. Set<Object?> that$3
)
override

Creates a new set with the elements of this that are not in other.

That is, the returned set contains all the elements of this Set that are not elements of other according to other.contains.

final characters1 = <String>{'A', 'B', 'C'};
final characters2 = <String>{'A', 'E', 'F'};
final differenceSet1 = characters1.difference(characters2);
print(differenceSet1); // {B, C}
final differenceSet2 = characters2.difference(characters1);
print(differenceSet2); // {E, F}

Implementation

dc.Set<E> difference(dc.Set<dc.Object?> that$3, ){
final dc.Set<dc.Object?> coll7657$1=that$3;
final lcoc_core.IFn$iface f7658$1=lcoc_core.disj;
final lcoc_core.PersistentHashSet<E> start7659$1=this;
if((coll7657$1 is lcoc_core.IReduce$iface)){
return ((coll7657$1 as lcoc_core.IReduce$iface).$_reduce$2(f7658$1, start7659$1, ));
}
return ((lcoc_core.IReduce.extensions(coll7657$1, ) as lcoc_core.IReduce$ext).$_reduce$2(coll7657$1, f7658$1, start7659$1, ));
}