Constructor and Description |
---|
D() |
Modifier and Type | Method and Description |
---|---|
Thunk<X> |
asThunk()
Tell if this is really a
Thunk |
boolean |
isShared()
Tell if this is shared.
|
public Thunk<X> asThunk()
Lazy
Tell if this is really a Thunk
public boolean isShared()
Lazy
Tell if this is shared.
Data and functions whose Lazy.call()
method returns this as well
as simple boxes that just hold a value ready to be supplied and Thunk
s
are considered shared.
But a bare lambda expression is assumed to be in need of sharing. For example:
() -> 42