|Re: How to define Xtend method like: collection.retainAll(e|expression with e) ? [message #491509 is a reply to message #491391]
||Wed, 14 October 2009 20:25
| Sven Efftinge
Registered: July 2009
It's not possible to introduce new higher order functions, since|
you'ld have to extend the parser.
result.removeAll(result.select(e|e.associationFromMyType != this));
> Hi Sebastian, thanks for fast answer.
> Would it be possible then to subclass the java code that implements it?
> What is the Java class that implements the high order collection functions?
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Need professional support on Xtext or Xtend?
Mail to: xtext (at) itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
Powered by FUDForum
. Page generated in 0.02366 seconds