Hi all - I was wondering if anyone would have an insight for me as to why the following expression is wrong:
``` for $s in ("/a/b/c", "/1/2/3") let $t := $s => tokenize("/")[last()] return $t ``` This is because of the predicate filter, but I'm not clear on *why* it's because of that :) Thanks for your help! Best, Bridger PS I don't always remember to look at the optimized query in the Info window, but when I do I always get a hint about something; "util:last()" in this case. correctly ``` for $s in ("/a/b/c", "/1/2/3") let $t := tokenize($s, "/")[last()] return $t ``` ``` for $s in ("/a/b/c", "/1/2/3") let $t := $s => tokenize("/") => util:last() return $t ```