-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Labels
POPROXTasks needed to support POPROX.Tasks needed to support POPROX.pipelineLensKit pipeline abstractionLensKit pipeline abstraction
Milestone
Description
For testing (and perhaps other purposes), it would be useful to easily create Lazy objects to pass to pipelines. There are at least two that are likely useful:
- An already-instantiated object (
getjust returns this value) - A memoized thunk (
getcalls a no-arg function)
Worked around with a local shim in CCRI-POPROX/poprox-recommender#295, but first-class support in LensKit is a good idea.
Possible alternate design: make Lazy[T] an alias for Callable[[], T], and then code can just pass lambda: val.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
POPROXTasks needed to support POPROX.Tasks needed to support POPROX.pipelineLensKit pipeline abstractionLensKit pipeline abstraction
Type
Projects
Status
Backlog