castFrom<T, R> static method

ImmortalSet<R> castFrom<T, R>(
  1. ImmortalSet<T> other
)

Returns a copy of other casting all elements to instances of R.

See castFromIterable.

Implementation

static ImmortalSet<R> castFrom<T, R>(ImmortalSet<T> other) => other.cast<R>();