lenskit.lazy ============ .. py:module:: lenskit.lazy .. autoapi-nested-parse:: Types and functions for lazy values. These are used mostly for pipeline inputs. Classes ------- .. toctree:: :hidden: /api/lenskit/lazy/Lazy .. autoapisummary:: lenskit.lazy.Lazy Functions --------- .. autoapisummary:: lenskit.lazy.lazy_value lenskit.lazy.lazy_thunk Module Contents --------------- .. py:function:: lazy_value[T](value) Create a lazy wrapper for an already-computed value. :param value: The value to wrap in a lazy object. :returns: A lazy wrapper for the already-computed value. .. py:function:: lazy_thunk[T](thunk) Create a lazy value that calls the provided function to get the value as needed. :param thunk: The function to call to supply a value. Will only be called once. :returns: A :class:`Lazy` that will call the provided function.