library LinkedListHelper {
    using LinkedListLibraryV2 for LinkedListLibraryV2.LinkedList;

    /* ============ Structs ============ */

    function getLatestValue(
        LinkedListLibraryV2.LinkedList memory _self
    )
        internal
        view
        returns (uint256)
    {
        uint256[] memory currentTimeSeriesValues = _self.readListMemory(1);
        return currentTimeSeriesValues[0];
    }
}
/**
 * @title LinkedListHelper
 * @author Set Protocol
 *
 * Convenience methods for the LinkedListLibrary
 */
function getLatestValue(
    LinkedListLibraryV2.LinkedList memory _self
)
    internal
    view
    returns (uint256)
{
    uint256[] memory currentTimeSeriesValues = _self.readListMemory(1);
    return currentTimeSeriesValues[0];
}

/* ============ Structs ============ */