(alphabet n)
Returns an alphabet of n letters.
Returns an alphabet of n letters.
(cartesian-product spaces)
(cartesian-product spaces coords)
Take the cartesian product of several collections.
Take the cartesian product of several collections.
(choose-digit r c)
Chooses a random digit, excluding zero if given the 0th row or column.
Chooses a random digit, excluding zero if given the 0th row or column.
(choose-digits w h)
Returns a randomized h by w matrix with no leading zeroes in any col or row.
Returns a randomized h by w matrix with no leading zeroes in any col or row.
(clue-to-hash-map clue)
Takes a clue of the form (A)(B^3)(D^2) and turns it into a hash-map of letters to powers.
Takes a clue of the form (A)(B^3)(D^2) and turns it into a hash-map of letters to powers.
(clue-to-letter-max letter clue length)
Estimates max possible value of a letter based on a single clue.
Estimates max possible value of a letter based on a single clue.
(clues-to-alphabet clues)
Lists all letters present in clues.
Lists all letters present in clues.
(clues-to-letter-max letter clues length)
Estimates max possible value of a letter (specified by an int), given some hash-map representations of clues and the length of the rows/cols in that direction.
Estimates max possible value of a letter (specified by an int), given some hash-map representations of clues and the length of the rows/cols in that direction.
(col-to-int digits c)
Assembles a column into a number.
Assembles a column into a number.
(crossnumber-solutions row-clues col-clues)
Finds all possible solutions to a given crossnumber puzzle.
Finds all possible solutions to a given crossnumber puzzle.
(factor n)
(factor n factors candidate)
Returns a sorted vector of factors of n.
Returns a sorted vector of factors of n.
(factors-to-expression factors dict)
(factors-to-expression factors dict expr)
Takes sorted factors and dictionary and turns them into nice algebraic expression.
Takes sorted factors and dictionary and turns them into nice algebraic expression.
(int-to-digits n)
(int-to-digits n s)
Converts a number into a sequence of digits.
Converts a number into a sequence of digits.
(monomial hm n)
Gives a monomial fn based on a string input and a num of letters.
Gives a monomial fn based on a string input and a num of letters.
(primes n)
(primes n ps candidate)
(inefficiently) Gives all the primes less than n.
(inefficiently) Gives all the primes less than n.
(row-to-int row)
(row-to-int row n place)
Assembles a row of single-digit ints into a number, most-significant digit first.
Assembles a row of single-digit ints into a number, most-significant digit first.
(solves? row-fns col-fns candidate)
Checks if given tuple solves given row and column functions.
Checks if given tuple solves given row and column functions.
(transpose m)
Returns the transpose of a matrix.
Returns the transpose of a matrix.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close