/src/main/java/net/finmath/montecarlo/RandomVariableLazyEvaluation.java
realizationsArray = getRealizations( ).toArray( ) ;
realizationsArray = getRealizationsStream ( ) .toArray ( ) ;
} @Override public RandomVariable cache() { synchronized (this) { if(realizationsArray == null) { <extra_id_0> realizations = new IntToDoubleFunction() { @Override public double applyAsDouble(final int i) { return realizationsArray[i]; } };