You already have 2 accumulate functions to do what you need:
- collectList
- collectSet
So, your rule will look like this:$countries : HashSet(empty == false) from accumulate (City($name matches "X.*", $country : country), collectSet($country))
Best Regards,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com