class RollingHash

Defined in:

string/rolling_hash.cr

Constant Summary

MOD = (1_u64 << 61) - 1

Constructors

Instance Method Summary

Constructor Detail

def self.new(s : String, base : UInt64 = 10007_u64) #

[View source]
def self.new(a : Array(Int), base : UInt64 = 10007_u64) #

[View source]
def self.new(size, a : Enumerable, base : UInt64 = 10007_u64, &) #

[View source]

Instance Method Detail

def [](start : Int, count : Int) : UInt64 #

[View source]
def [](range : Range) : UInt64 #

[View source]
def size : Int32 #

[View source]