Wraps a value in a function.