Liking cljdoc? Tell your friends :D

genartlib.util


between?clj

(between? value end1 end2)

Returns true if value is between end1 and end2

Returns true if value is between end1 and end2
sourceraw docstring

distinct-keyclj

(distinct-key f coll)

Given a function f to uniquely identify items, extracts all of the distinct items in a collection.

Given a function f to uniquely identify items, extracts
all of the distinct items in a collection.
sourceraw docstring

enumerateclj

(enumerate s)

Returns a seq of tuples like [i v], where i enumerates the position (starting from zero, of course) in the original sequence and v is the corresponding value in the original sequence. Example:

user=> (enumerate [:a :b :c]) ([0 :a] [1 :b] [2 :c])

Returns a seq of tuples like [i v], where i enumerates
the position (starting from zero, of course) in the original
sequence and v is the corresponding value in the original
sequence. Example:

 user=> (enumerate [:a :b :c])
 ([0 :a] [1 :b] [2 :c])
sourceraw docstring

hclj

(h)
(h percentage)

Returns a given percentage of the height Quil-specific.

Returns a given percentage of the height Quil-specific.
sourceraw docstring

h-intclj

(h-int)
(h-int percentage)

A version of h that truncates to an int value.

A version of `h` that truncates to an int value.
sourceraw docstring

in?clj

(in? seq elm)

true if seq contains elm

true if seq contains elm
sourceraw docstring

not-in?clj

(not-in? seq elm)

true if seq does not contain elm

true if seq does not contain elm
sourceraw docstring

piclj

(pi x)
source

set-color-modeclj

(set-color-mode)

Set the color space to HSB, with the following ranges:

  • Hue: [0, 360)
  • Saturation: [0 100]
  • Brightness: [0 100]
  • Alpha: [0.0, 1.0]
Set the color space to HSB, with the following ranges:
- Hue: [0, 360)
- Saturation: [0 100]
- Brightness: [0 100]
- Alpha: [0.0, 1.0]
sourceraw docstring

snap-toclj

(snap-to v snap-width)
source

vec-removeclj

(vec-remove v index)

Removes an element by index from a vector

Removes an element by index from a vector
sourceraw docstring

wclj

(w)
(w percentage)

Returns a given percentage of the width. Quil-specific.

Returns a given percentage of the width. Quil-specific.
sourceraw docstring

w-intclj

(w-int)
(w-int percentage)

A version of w that truncates to an int value.

A version of `w` that truncates to an int value.
sourceraw docstring

zipclj

(zip & sequences)
source

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

× close