I know how to use the new "!" in simple for loops like so:
$t2/Course ! map {./SubjectId : .}
But how do you use this new "!" in more complex for statements that contain "lets" and "groups" like this:
for $e2 in $t2/Course
let $foreignId := $e2/SubjectId
group by $foreignId
return map {$foreignId : $e2}
Thanks!