+ support First and Last keywords in discretize