書式
sublist(リスト, 条件)
で用い、「リスト」のうち「条件」を満たすもののみからなる部分リストを生成する。
上の例で用いた判定関数は、順に整数判定(integerp)、記号判定(symbolp)、偶数判定(evenp)、奇数判定(oddp)。(%i1) x: [0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f]; (%o1) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, f] (%i2) sublist(x, integerp); (%o2) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] (%i3) sublist(x, symbolp); (%o3) [a, b, c, d, e, f] (%i4) sublist(x, evenp); (%o4) [0, 2, 4, 6, 8] (%i5) sublist(x, oddp); (%o5) [1, 3, 5, 7, 9]