How to make list in Maxima.
peter.vlasschaert@gmail.com,13/10/2017
appendix : makelist

how to make list of result from a computation.

add values to list  'use  endcons(expr,list) '

kill(all)$
arr:[1,2,3,4,5];
arr1:endcons(6,arr);

empty list add all elements.
: compound statements.

(list:[], for n:1 thru 6 do
    list: endcons([n],list))$

list;

use of functions.
l,h : integer.
full empty 'list1',with all elemnts of 'arr'

hulp_list (ar,l,h) :=(list1:[],for n:l thru h do
list1:endcons (ar[n],list1))$

list1;

h:length(arr);
l  : 1;
hulp_list (arr,l,h)$
list1;
first(list1);
last(list1);
member(1,list1);
cons(arr1,list1);
cons(arr1,list);
cons(arr1,list)[1];
cons(arr1,list)[4];
p1:cons(arr1,list)[1];
p2:p1[5];
;

Search : belln,Search in all books, same ' example' same help'
n-th  Bell number => makelist,createlist
rem: delete(expr1,expr2,n)
rem:expr(p) => false or true 
example: menberp(),listp(),...............

arr2:makelist(belln(i),i,0,6);
arr2 [4];
arr3:delete(203,arr2) ;  
join(arr2,arr3);
listp(arr2) ; 
listp(arr2 [4]);                                                                             

map : instruction

map(exp,arr2);
map(diff,arr2);

y[i]:=arr2[i];

y[5];