Functional rect()