func index()

in Sources/Hub/BinaryDistinct.swift [105:108]


    func index(_ i: Index, offsetBy distance: Int, limitedBy limit: Index) -> Index? {
        let newIndex = i + distance
        return newIndex <= limit ? newIndex : nil
    }