E.3 Extra Predefined Operations


Note a large number of additional predefined operations on collections:

  • collectNested

  • flatten

  • excludes

  • excludesAll

  • insertAt

  • indexOf

  • any

  • one

  • isUnique

  • sortedBy

As a convenience, extra operations are defined; for example, asSet() can be called on a set instance, and so on. Furthermore, you can convert a set or a bag to a sequence or ordered set using the sortedBy operation. This operation results in a sequence with a certain order, instead of a random sequence as is the case with the asSequence operation.



Object Constraint Language, The. Getting Your Models Ready for MDA
The Object Constraint Language: Getting Your Models Ready for MDA (2nd Edition)
ISBN: 0321179366
EAN: 2147483647
Year: 2003
Pages: 137

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net