`selector` BIF

`selector` BIF, see #1240