plus method
Implementation
@override IVector<A> plus(IVector<A> fa2) {
final int l = length();
if (l == 0) {
return fa2;
} else {
final int fa2l = fa2.length();
if (fa2l == 0) {
return this;
} else if (l < fa2l) {
return foldRight(fa2, (a, p) => p.prependElement(a));
} else {
return fa2.foldLeft(this, (p, a) => p.appendElement(a));
}
}
}