OCLOperators insertAt

Insert an object in a specific place in a collection or association.

<collection>.insertAt(<position>, <object>)

Used when you don't want a new object at the end using add.

For associations, it's only makes sense to use insertAt on ordered associations.

  • Note that the position in 1-based, not 0.
This page was edited 84 days ago on 02/10/2024. What links here