[rules-users] how to get first and last element of list of facts?