The replacement value as a function