def _compose_func(func, args_func=lambda req_info: [req_info.index]):
    """
    Compose function used to compose arguments to function.

    Arguments for the functions are composed from the :class:`.RequestInfo`
    object from the ZODB.
    """
    return FuncInfo(func=func, args_func=args_func)
Compose function used to compose arguments to function.

    Arguments for the functions are composed from the :class:`.RequestInfo`
    object from the ZODB.