$u method

List<V> $u(
  1. List<V>? a,
  2. List<V>? r
)

Implementation

List<V> $u(List<V>? a, List<V>? r) {
  if (a?.isNotEmpty ?? false) {
    return followedBy(a!).toList();
  }

  if (r?.isNotEmpty ?? false) {
    return this.where((i) => !r!.contains(i)).toList();
  }

  return this;
}