Liking cljdoc? Tell your friends :D

prelude.core


attach-scoreclj/s

(attach-score score-fn specimen)

Attaches the score to a specimen.

Attaches the score to a specimen.
raw docstring

avgclj/s

(avg coll)

clampclj/s

(clamp x lower upper)

Clamps a value to boundaries.

Clamps a value to boundaries.
raw docstring

clamp-fclj/s

(clamp-f f lower upper)

Modifies a function to clamp the result.

Modifies a function to clamp the result.
raw docstring

distanceclj/s

(distance x y)

Distance between two numbers.

Distance between two numbers.
raw docstring

dotclj/s

(dot x y)

dpprclj/s

(dppr x)

Pretty-prints something and returns it.

Pretty-prints something and returns it.
raw docstring

dprclj/s

(dpr x)

Prints something and returns it.

Prints something and returns it.
raw docstring

evolutionclj/s

(evolution base mutator score-fn gen-size)

Generator for generations.

Generator for generations.
raw docstring

factorsclj/s

(factors n)

Returns all the factors for n.

Returns all the factors for n.
raw docstring

fibonacciclj/s

Lazy generator of the fibonacci sequence. Probably not the fastest implementation.

Lazy generator of the fibonacci sequence.
Probably not the fastest implementation.
raw docstring

find-indexclj/s

(find-index elm coll)

generationclj/s

(generation base mutator score-fn gen-size)

Picks out the best one from a generation.

Picks out the best one from a generation.
raw docstring

in?clj/s

(in? coll element)

True if coll contains element. Contrary to contains?, this works for lists.

True if coll contains element.
Contrary to `contains?`, this works for lists.
raw docstring

insert-atclj/s

(insert-at elm idx coll)

Inserts elm into coll at idx, overwriting whatever was there before.

Inserts elm into coll at idx, overwriting whatever was there before.
raw docstring

insert-inclj/s

(insert-in elm idx coll)

Inserts elm into coll at idx, overwriting whatever was there before.

Inserts elm into coll at idx, overwriting whatever was there before.
raw docstring

monte-carloclj/s

(monte-carlo sample-fn eval-fn sample-size)

Find a result via Monte Carlo approximation.

Find a result via Monte Carlo approximation.
raw docstring

mutateclj/s

(mutate base mutator)

Generator that mutates a base, the first element being the base.

Generator that mutates a base, the first element being the base.
raw docstring

prime-factorsclj/s

(prime-factors n)

Finds all prime factors of n.

Finds all prime factors of n.
raw docstring

prime?clj/s

(prime? n)

Checks if n is prime.

Checks if n is prime.
raw docstring

primesclj/s

Lazy generator of prime numbers.

Lazy generator of prime numbers.
raw docstring

sdivclj/s

(sdiv x y)

transposeclj/s

(transpose coll)
(transpose acc coll)

Transpose a two-dimensional vector.

Transpose a two-dimensional vector.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close