insert

insert(int index, Portion value) function

Inserts a Portion into the collection at the specified index.

Parameters

NameTypeDescription
indexintThe zero-based index at which Portion should be inserted.
valuePortionThe Portion to insert.

insert(int index, MathPortion value) function

Inserts a Portion into the collection at the specified index.

Parameters

NameTypeDescription
indexintThe zero-based index at which Portion should be inserted.
valueMathPortionThe Portion to insert.