Liking cljdoc? Tell your friends :D

sicmutils.series


fmapclj

(fmap f s)
source

generateclj

(generate f)

Produce the series generated by (f i) for i in 0, 1, ...

Produce the series generated by (f i) for i in 0, 1, ...
sourceraw docstring

partial-sumsclj

(partial-sums s)

Form the infinite sequence of partial sums of the given series

Form the infinite sequence of partial sums of the given series
sourceraw docstring

series?clj

(series? s)
source

starting-withclj

(starting-with & xs)

Form the infinite sequence starting with the supplied values. The remainder of the series will be filled with the zero-value corresponding to the first of the given values.

Form the infinite sequence starting with the supplied values. The
remainder of the series will be filled with the zero-value
corresponding to the first of the given values.
sourceraw docstring

sumclj

(sum s n)
source

takeclj

(take n s)
source

valueclj

(value S x)

Find the value of the series S applied to the argument x. This assumes that S is a series of applicables. If, in fact, S is a series of series-valued applicables, then the result will be a sort of layered sum of the values. Concretely, suppose that S has the form [[A1 A2 A3...] [B1 B2 B3...] [C1 C2 C3...]...] Then, this series applied to x will yield the series of values [(A1 x) (+ (A2 x) (B1 x)) (+ (A3 x) (B2 x) (C1 x)) ...]

Find the value of the series S applied to the argument x.
This assumes that S is a series of applicables. If, in fact, S is a
series of series-valued applicables, then the result will be a sort
of layered sum of the values. Concretely, suppose that S has the
form
  [[A1 A2 A3...] [B1 B2 B3...] [C1 C2 C3...]...]
Then, this series applied to x will yield the series of values
  [(A1 x) (+ (A2 x) (B1 x)) (+ (A3 x) (B2 x) (C1 x)) ...]
sourceraw docstring

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

× close