Indeed, but it's one of the (many) good ideas from functional programming that have filtered into more mainstream languages.