Liking cljdoc? Tell your friends :D

quil.helpers.seqs


cycle-betweenclj

(cycle-between min max)
(cycle-between min max inc-step)
(cycle-between min max inc-step dec-step)
(cycle-between start min max inc-step dec-step)
(cycle-between start min max inc-step dec-step direction)

Cycle between min and max with inc-step and dec-step starting at start in direction :up

Cycle between min and max with inc-step and dec-step starting at
start in direction :up
sourceraw docstring

indexed-rangeclj

(indexed-range)
(indexed-range end)
(indexed-range start end)
(indexed-range start end step)

Returns a sequence of [idx val] pairs over the specified range

Returns a sequence of [idx val] pairs over the specified range
sourceraw docstring

indexed-range-inclclj

(indexed-range-incl)
(indexed-range-incl end)
(indexed-range-incl start end)
(indexed-range-incl start end step)

Returns a sequence of [idx val] pairs over the specified inclusive range

Returns a sequence of [idx val] pairs over the specified inclusive
range
sourceraw docstring

perlin-noise-seqclj

(perlin-noise-seq seed incr)

Generate a lazy infinite sequence of perlin noise values starting from the specified seed with incr added to the seed for each successive value.

Generate a lazy infinite sequence of perlin noise values starting from
the specified seed with incr added to the seed for each successive value.
sourceraw docstring

range-inclclj

(range-incl)
(range-incl end)
(range-incl start end)
(range-incl start end step)

Returns a lazy seq of nums from start (inclusive) to end (inclusive), by step, where start defaults to 0, end to infinity and step to 1 or -1 depending on whether end is greater than or less than start respectively.

Returns a lazy seq of nums from start (inclusive) to end
(inclusive), by step, where start defaults to 0, end to infinity and
step to 1 or -1 depending on whether end is greater than or less
than start respectively.
sourceraw docstring

seq->streamclj

(seq->stream s)

Converts a sequence to a stream - a stateful function which returns each subequent element each time it is called

(def s (seq->stream [1 2 3])) (s) ;=> 1 (s) ;=> 2 (s) ;=> 3 (s) ;=> nil

Converts a sequence to a stream - a stateful function which returns
each subequent element each time it is called

(def s (seq->stream [1 2 3]))
(s) ;=> 1
(s) ;=> 2
(s) ;=> 3
(s) ;=> nil
sourceraw docstring

stepsclj

(steps)
(steps step)
(steps start step)

Returns a lazy sequence of numbers starting at start (default 0) with successive additions of step. step may be a sequence of steps to apply.

Returns a lazy sequence of numbers starting at
start (default 0) with successive additions of step. step may be a
sequence of steps to apply.
sourceraw docstring

tallyclj

(tally coll)
(tally init coll)

Cumulative tally. Returns a lazy sequence of the successive sums of coll, starting with init plus the first element.

(take 5 (tally (range))) ;=> (0 1 3 6 10) (take 5 (tally 3 (range))) ;=> (3 4 6 9 13) (tally []) ;=> () (tally 100 []) ;=> ()

Cumulative tally. Returns a lazy sequence of the successive sums
of coll, starting with init plus the first element.

(take 5 (tally (range)))   ;=> (0 1 3 6 10)
(take 5 (tally 3 (range))) ;=> (3 4 6 9 13)
(tally [])                 ;=> ()
(tally 100 [])             ;=> ()
sourceraw docstring

tapclj

(tap s)
(tap msg s)

Debug tool for lazy sequences. Apply to a lazy-seq to print out current value when each element of the sequence is evaluated.

Debug tool for lazy sequences. Apply to a lazy-seq to print out
current value when each element of the sequence is evaluated.
sourceraw docstring

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

× close