Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Sublist Calculator

Sublist

Function: sublist (<list>, <p>) Returns the list of elements of <list> for which the predicate p returns true.

l: [1, 2, 3, 4, 5, 6];
 sublist (l, evenp);

Example:

          (%i1) L: [1, 2, 3, 4, 5, 6];
          (%o1)                  [1, 2, 3, 4, 5, 6]
          (%i2) sublist (L, evenp);
          (%o2)                       [2, 4, 6]

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

(%o1)                                true
(%i2) 

Sublist Example

Related Examples