Lists are delimited by square bracketsgap> [1,-1,2,-2,3,-3];
[ 1, -1, 2, -2, 3, -3 ]
gap> List([1..10],x->x^2);
[ 1, 4, 9, 16, 25, 36, 49, 64, 81, 100 ]
gap> List([1..10],IsPrimeInt);
[ false, true, true, false, true, false, true, false, false, false ]
gap> Filtered([1..10],IsPrimeInt);
[ 2, 3, 5, 7 ]