Log in

OCLOperators add

From MDrivenWiki
Revision as of 15:23, 28 October 2018 by Lars (talk | contribs) (Created page with "=== .add ( object : T ) === Adds the ''object to'' an sequence, for example an association. {| class="wikitable" !Expression !Result |- |self.<association of type T>.add(<obj...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

.add ( object : T )

Adds the object to an sequence, for example an association.

Expression Result
self.<association of type T>.add(<object : T>) The object has been added to the existing association

Note! Add changes the sequence or association. If you want to append (add) an object to an sequence and return the result (without changing the underlying data), use ->append