First-class functions/Use numbers analogously: Difference between revisions

m
Minor correction to code.
(New post.)
m (Minor correction to code.)
Line 837:
=={{header|Java}}==
<syntaxhighlight lang="java">
import java.util.Arrays;
import java.util.List;
import java.util.function.BiFunction;
Line 849 ⟶ 848:
z = x + y, zi = 1.0 / ( x + y );
 
List<Double> list = ArraysList.asListof( x, y, z );
List<Double> inverseList = ArraysList.asListof( xi, yi, zi );
BiFunction<Double, Double, Function<Double, Double>> multiplier = (a, b) -> product -> a * b * product;
884

edits