reactiveSet<E> function

Set<E> reactiveSet<E>(
  1. Set<E> set
)

Creates a reactive set from the given set.

If set is already reactive, it is returned as-is. Otherwise, a new reactive Set is created from the raw value.

E is the type of elements in the set.

Implementation

Set<E> reactiveSet<E>(Set<E> set) {
  if (impl.isReactive(set)) {
    return set;
  }

  return impl.ReactiveSet<E>(impl.toRaw(set));
}