Single element of set



Date view Thread view Subject view Author view

John Daniels (jdaniels@cix.co.uk)
Thu, 13 Apr 2000 19:31 +0100 (BST)


Dear list, I keep finding myself writing OCL like this: ---------------- Let h = hotel->select(x | "some test on x" )->asSequence->first in ---------------- where I have already asserted that the hotel set includes a single element that matches the select condition. Is there a simpler way to access the single element of a set? Thanks, --John ========================================================================= John Daniels Tel/fax: +44 (0)20 8777 6007


Date view Thread view Subject view Author view