public static DoubleToLongFunction doubleToLongFunction(CheckedDoubleToLongFunction function) {
        return doubleToLongFunction(function, THROWABLE_TO_RUNTIME_EXCEPTION);
    }
Wrap a {@link CheckedDoubleToLongFunction} in a {@link DoubleToLongFunction}.
<p>
Example:
<pre><code>
DoubleStream.of(1.0, 2.0, 3.0).mapToLong(Unchecked.doubleToLongFunction(d -> {
    if (d &lt; 0.0)
        throw new Exception("Only positive numbers allowed");

    return (long) d;
});
</code></pre>
jOOL-java-8/src/main/java/org/jooq/lambda/Unchecked.java