# select(BasicList,Type) -- select elements of a given type in a list

## Synopsis

• Function: select
• Usage:
select(L, T)
• Inputs:
• Outputs:
• , containing elements of L whose class inherits from type T

## Description

The order of the elements in the result will be the same as in the original list L, and the class of the result will be the same as the class of L.

 i1 : select({1,"2",3.14,4+5*ii}, ZZ) o1 = {1} o1 : List i2 : select([1,"2",3.14,4+5*ii], RR) o2 = [3.14] o2 : Array