Liking cljdoc? Tell your friends :D

bifurcan-clj.list

Functions for working with lists.

Functions for working with lists.
raw docstring

add-firstclj

(add-first xs x)

Adds an entry at the front of the list.

Adds an entry at the front of the list.
sourceraw docstring

add-lastclj

(add-last xs x)

Adds an entry at the end of the list.

Adds an entry at the end of the list.
sourceraw docstring

concatclj

(concat a b)

Concatenates two lists.

Concatenates two lists.
sourceraw docstring

concat-allclj

(concat-all lists)

Concatenates a collection of lists.

Concatenates a collection of lists.
sourceraw docstring

emptyclj

The empty list.

The empty list.
sourceraw docstring

firstclj

(first xs)

The first entry in the list.

The first entry in the list.
sourceraw docstring

Fromcljprotocol

fromclj

(from x)

Coerces x to a list.

Coerces x to a list.
source

lastclj

(last xs)

The last entry in the list.

The last entry in the list.
sourceraw docstring

listclj

(list)
(list & args)

Constructs a new list. With arguments, constructs a list of those arguments.

Constructs a new list. With arguments, constructs a list of those
arguments.
sourceraw docstring

reverseclj

(reverse xs)

Reverses a list.

Reverses a list.
sourceraw docstring

setclj

(set xs n x)

Returns a new list, with the element at idx overwritten with value. If idx is equal to ICollection.size(), the value is appended.

Returns a new list, with the element at idx overwritten with value. If idx
is equal to ICollection.size(), the value is appended.
sourceraw docstring

sliceclj

(slice xs start end)

Takes a sub-range of the given list from start (inclusive) to end (exclusive). Linear if this list is linear.

Takes a sub-range of the given list from start (inclusive) to end
(exclusive). Linear if this list is linear.
sourceraw docstring

sortclj

(sort xs)
(sort xs comparator)

Sorts a list, optionally with a comparator.

Sorts a list, optionally with a comparator.
sourceraw docstring

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

× close