issue #1032: added `FIND_FIRST` and `FIND_LAST`