|Is there a better [let] construct for multiple variable context [message #1733446]
||Fri, 27 May 2016 14:46
| Shimon Zadok
Registered: May 2016
I would like to store the result in a variable after a log sequence.|
The let construct make is easier.
Though using it multiple times is not that pretty as it looks like nesting (while it is for the sake of scoping).
[let aPrimitiveType : PrimitiveType = aClass.clientDependency->asSequence()->first().supplier->filter(PrimitiveType)->asSequence()->first() ]
[let aStereoType : Stereotype = aPrimitiveType.getAppliedStereotypes()->asSequence()->first() ]
PrimitiveType: [aPrimitiveType.name /] StereoType: [aStereoType.name /]
Am I missing a better way? even for the retrieval of the first element?
[Updated on: Sat, 28 May 2016 08:37]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01275 seconds