Sponsored links: Algebra eBooks ### The Maxima on-line user's manual

Algebra Calculator

#### Search: #### Cons

Function: cons (<expr>, <list>) Returns a new list constructed of the element <expr> as its first element, followed by the elements of <list>. `cons` also works on other expressions, e.g. `cons(x, f(a,b,c));` -> `f(x,a,b,c)`.

There are also some inexact matches for `cons`. Try `?? cons` to see them.

```(%o1)                                true
(%i2) ```

### Related Examples

##### cons-let

:lisp (defun pairs (i...

:lisp (pairs '(1 2 3 ...

Calculate

##### cons-if

:lisp (defun nodes-de...

:lisp (nodes-deep '(a...

:lisp (setq tree '(a ...

Calculate

##### cons-if

:lisp (defun nodes-de...

:lisp (nodes-deep '(a...

Calculate

##### cons

:lisp (defun pre2in (...

f;

Calculate

n : 12;

b : 2;

floor(n/16);

Calculate

##### cons

cons(X, [1,2,3]);

Calculate

##### cons-let

:lisp (defun pairs (i...

:lisp (pairs '(1 2 3 ...

Calculate

##### cons-lambda-let-subst

:lisp (defun pairs (i...

:lisp (defun separate...

:lisp (setf a (pairs ...

Calculate

##### cons-if-labels-let

:lisp (defun r (n) (l...

Calculate

##### cons-if

:lisp (defun nodes-de...

:lisp (nodes-deep '(a...

:lisp (setq tree '(a ...

Calculate 