Skip to content

Instantly share code, notes, and snippets.

@charmygarg
Last active March 26, 2018 10:34
Embed
What would you like to do?
VAVR Lazy Example
Lazy<Double> lazyExample = Lazy.of(Math::random);
double firstValue = lazyExample.get(); // firstValue = 1232
lazyExample.isEvaluated()
double secondValue = lazyExample.get(); // seconndValue = 1232
lazyExample.isEvaluated();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment