public static <T> ToDoubleFunction<T> toDoubleFunction(CheckedToDoubleFunction<T> function) {
        return Unchecked.toDoubleFunction(function, Unchecked.RETHROW_ALL);
    }
Wrap a {@link CheckedToDoubleFunction} in a {@link ToDoubleFunction}.
<p>
Example:
<pre><code>
map.computeIfAbsent("key", Unchecked.toDoubleFunction(k -> {
    if (k.length() > 10)
        throw new Exception("Only short strings allowed");

    return 42.0;
}));
</code></pre>
jOOL/src/main/java/org/jooq/lambda/Sneaky.java