Skip to content

Instantly share code, notes, and snippets.

@charmygarg

charmygarg/vavr_lazy

Last active Mar 26, 2018
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
You can’t perform that action at this time.