What is the purpose of ToDoubleFunction<T> functional interface in Java8?
It represents a function that produces a double-valued result.