Liking cljdoc? Tell your friends :D

tupelo.interval

Tupelo - Making Clojure even sweeter

Tupelo - Making Clojure even sweeter
raw docstring

->doublesclj/s

(->doubles itvl)
(->doubles itvl step)

Inputs: ([itvl :- Interval] [itvl :- Interval step :- s/Num]) Returns: [s/Num]

For an Interval, returns a vector of all Double values within the Interval for a given step size (default=1)

Inputs: ([itvl :- Interval] [itvl :- Interval step :- s/Num])
Returns: [s/Num]

For an Interval, returns a vector of all Double values within the Interval for a
given step size (default=1)
sourceraw docstring

->integersclj/s

(->integers itvl)
(->integers itvl step)

Inputs: ([itvl :- Interval] [itvl :- Interval step :- s/Int]) Returns: [s/Int]

For an Interval with integer bounds, returns a vector of all integers within the Interval

Inputs: ([itvl :- Interval] [itvl :- Interval step :- s/Int])
Returns: [s/Int]

For an Interval with integer bounds, returns a vector of all integers within the Interval
sourceraw docstring

contains-value?clj/s

(contains-value? interval val)

Inputs: [interval :- Interval val :- s/Any] Returns: s/Bool

Returns true iff an interval contains a value such that (lower < L < upper).

Inputs: [interval :- Interval val :- s/Any]
Returns: s/Bool

Returns true iff an interval contains a value such that (lower < L < upper).
sourceraw docstring

interval?clj/s

(interval? it)

Returns true iff the arg represents an interval

Returns true iff the arg represents an interval
sourceraw docstring

newclj/s

(new lower upper)

Inputs: [lower upper]

Creates a new generic Interval record using the ->Interval constructor function.

Inputs: [lower upper]

Creates a new generic Interval record using the `->Interval` constructor function.
sourceraw docstring

new-anti-sliceclj/s

(new-anti-slice lower upper)

Inputs: [lower upper]

Creates a new anti-slice Interval record using the ->Interval constructor function.

Inputs: [lower upper]

Creates a new anti-slice Interval record using the `->Interval` constructor function.
sourceraw docstring

new-closedclj/s

(new-closed lower upper)

Inputs: [lower upper]

Creates a new closed Interval record using the ->Interval constructor function.

Inputs: [lower upper]

Creates a new closed Interval record using the `->Interval` constructor function.
sourceraw docstring

new-openclj/s

(new-open lower upper)

Inputs: [lower upper]

Creates a new open Interval record using the ->Interval constructor function.

Inputs: [lower upper]

Creates a new open Interval record using the `->Interval` constructor function.
sourceraw docstring

new-sliceclj/s

(new-slice lower upper)

Inputs: [lower upper]

Creates a new slice Interval record using the ->Interval constructor function.

Inputs: [lower upper]

Creates a new slice Interval record using the `->Interval` constructor function.
sourceraw docstring

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

× close