Crate mudder

Source

Structs§

DivisionResult
SymbolTable
A table for generating lexicographically spaced strings.

Functions§

chop_digits
Returns a slice of water up to the first index i where water[i] is not zero and water[i] is not equal to rock[i]. If no such index exists, returns a copy of water.
chop_successive_digits
Takes a mutable vector of vectors (strings), and manipulates the vectors in it by chopping the successive digits using the chop_digits function. The sequences are processed based on their lexicographic order.
lexicographic_less_than_array
Compare two arrays lexicographically.
long_add_same_len
Performs addition on two equal-length vectors and handles carrying over values based on the base of the numeric system.
long_div
Performs long division on a vector of numerators with a single denominator. Element-wise, each numerator is divided by the denominator, with any remainder carried to the next iteration.
long_linspace
Creates a range of values between two vectors a and b spread evenly over n steps.
pad_left
Resizes the given vector to a provided length by prepending a specific padding value. If the vector is already longer, it does nothing.
pad_right
Resizes the given vector to a provided length by appending a specific padding value. If the vector is already longer, it does nothing.