dropRight method

  1. @override
IVector<A> dropRight(
  1. int n
)
override

Return a new collection with the last n elements removed.

Implementation

@override
IVector<A> dropRight(int n) => slice(0, length - max(n, 0));